Ignore:
Timestamp:
Aug 2, 2024, 9:58:25 PM (7 weeks ago)
Author:
abarral
Message:

Put dimensions.h and paramet.h into modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/dyn3dmem/writedynav_loc.f90

    r5158 r5159  
    1616  USE lmdz_comgeom
    1717
     18  USE lmdz_dimensions, ONLY: iim, jjm, llm, ndm
     19  USE lmdz_paramet
    1820  IMPLICIT NONE
    1921
    20   !
     22
    2123  !   Ecriture du fichier histoire au format IOIPSL
    22   !
     24
    2325  !   Appels succesifs des routines: histwrite
    24   !
     26
    2527  !   Entree:
    2628  !  histid: ID du fichier histoire
     
    3436  !  ps   :pression au sol
    3537  !  phis : geopotentiel au sol
    36   !
    37   !
     38
     39
    3840  !   Sortie:
    3941  !  fileid: ID du fichier netcdf cree
    40   !
     42
    4143  !   L. Fairhead, LMD, 03/99
    42   !
     44
    4345  ! =====================================================================
    44   !
     46
    4547  !   Declarations
    46   INCLUDE "dimensions.h"
    47   INCLUDE "paramet.h"
    48 
    49   !
     48
     49
     50
     51
    5052  !   Arguments
    5153  !
     
    6264  ! This routine needs IOIPSL
    6365  !   Variables locales
    64   !
     66
    6567  INTEGER, SAVE, ALLOCATABLE :: ndex2d(:), ndexu(:), ndexv(:)
    6668  INTEGER :: iq, ii, ll
     
    7375  !$OMP THREADPRIVATE(first)
    7476
    75   !
     77
    7678  !  Initialisations
    77   !
     79
    7880  IF (adjust) return
    7981
     
    101103  CALL covnat_loc(llm, ucov, vcov, unat, vnat)
    102104
    103   !
     105
    104106  !  Appels a histwrite pour l'ecriture des variables a sauvegarder
    105   !
     107
    106108  !  Vents U
    107109  !
     
    117119  !$OMP END MASTER
    118120
    119   !
     121
    120122  !  Vents V
    121   !
     123
    122124  ije = ij_end
    123125  IF (pole_sud) jjn = jj_nb - 1
     
    130132
    131133
    132   !
     134
    133135  !  Temperature potentielle moyennee
    134   !
     136
    135137  ijb = ij_begin
    136138  ije = ij_end
     
    141143  !$OMP END MASTER
    142144
    143   !
     145
    144146  !  Temperature moyennee
    145147  !
     
    159161
    160162
    161   !
     163
    162164  !  Geopotentiel
    163   !
     165
    164166  !$OMP MASTER
    165167  CALL histwrite(histaveid, 'phi', itau_w, phi(ijb:ije, :), &
     
    168170
    169171
    170   !
     172
    171173  !  Traceurs
    172   !
     174
    173175  !!$OMP MASTER
    174176  !    DO iq=1,nqtot
     
    179181
    180182
    181   !
     183
    182184  !  Masse
    183   !
     185
    184186  !$OMP MASTER
    185187  CALL histwrite(histaveid, 'masse', itau_w, masse(ijb:ije, :), &
     
    188190
    189191
    190   !
     192
    191193  !  Pression au sol
    192   !
     194
    193195  !$OMP MASTER
    194196
     
    197199  !$OMP END MASTER
    198200
    199   !
     201
    200202  !  Geopotentiel au sol
    201   !
     203
    202204  !$OMP MASTER
    203205  ! CALL histwrite(histaveid, 'phis', itau_w, phis(ijb:ije),
     
    205207  !$OMP END MASTER
    206208
    207   !
     209
    208210  !  Fin
    209   !
     211
    210212  !$OMP MASTER
    211213  IF (ok_sync) THEN
Note: See TracChangeset for help on using the changeset viewer.