Changeset 1179 for LMDZ4/branches/LMDZ4-dev/libf/dyn3dpar
- Timestamp:
- Jun 11, 2009, 4:18:47 PM (16 years ago)
- Location:
- LMDZ4/branches/LMDZ4-dev/libf/dyn3dpar
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/branches/LMDZ4-dev/libf/dyn3dpar/infotrac.F90
r1117 r1179 1 ! $Id$ 2 ! 1 3 MODULE infotrac 2 4 3 5 ! nqtot : total number of tracers and higher order of moment, water vapor and liquid included 4 6 INTEGER, SAVE :: nqtot 5 !!$OMP THREADPRIVATE(nqtot)6 7 7 8 ! nbtr : number of tracers not including higher order of moment or water vapor or liquid 8 9 ! number of tracers used in the physics 9 10 INTEGER, SAVE :: nbtr 10 !!$OMP THREADPRIVATE(nbtr)11 11 12 12 ! Name variables 13 13 CHARACTER(len=20), ALLOCATABLE, DIMENSION(:), SAVE :: tname ! tracer short name for restart and diagnostics 14 14 CHARACTER(len=23), ALLOCATABLE, DIMENSION(:), SAVE :: ttext ! tracer long name for diagnostics 15 !!$OMP THREADPRIVATE(tname,ttext)16 15 17 16 ! iadv : index of trasport schema for each tracer 18 17 INTEGER, ALLOCATABLE, DIMENSION(:), SAVE :: iadv 19 !!$OMP THREADPRIVATE(iadv)20 18 21 19 ! niadv : vector keeping the coorspondance between all tracers(nqtot) treated in the 22 20 ! dynamic part of the code and the tracers (nbtr+2) used in the physics part of the code. 23 21 INTEGER, ALLOCATABLE, DIMENSION(:), SAVE :: niadv ! equivalent dyn / physique 24 !!$OMP THREADPRIVATE(niadv)25 22 26 23 ! Variables for INCA 27 24 INTEGER, ALLOCATABLE, DIMENSION(:), SAVE :: conv_flg 28 25 INTEGER, ALLOCATABLE, DIMENSION(:), SAVE :: pbl_flg 29 !!$OMP THREADPRIVATE(conv_flg, pbl_flg)30 26 31 27 CONTAINS … … 305 301 END DO 306 302 303 ! 304 ! Test for advection schema. 305 ! This version of LMDZ only garantees iadv=10 and iadv=14 (14 only for water vapour) . 306 ! 307 DO iq=1,nqtot 308 IF (iadv(iq)/=10 .AND. iadv(iq)/=14) THEN 309 WRITE(lunout,*)'STOP : The option iadv=',iadv(iq),' is not tested in this version of LMDZ' 310 CALL abort_gcm('infotrac_init','In this version only iadv=10 and iadv=14 is tested!',1) 311 ELSE IF (iadv(iq)==14 .AND. iq/=1) THEN 312 WRITE(lunout,*)'STOP : The option iadv=',iadv(iq),' is not tested in this version of LMDZ' 313 CALL abort_gcm('infotrac_init','In this version iadv=14 is only permitted for water vapour!',1) 314 END IF 315 END DO 316 307 317 !----------------------------------------------------------------------- 308 318 ! Finalize : -
LMDZ4/branches/LMDZ4-dev/libf/dyn3dpar/pres2lev.F
r1046 r1179 1 ! 2 ! $Header$ 1 ! $Id$ 3 2 ! 4 3 c****************************************************** … … 21 20 c ARGUMENTS 22 21 c """"""""" 23 LOGICAL ok_invertp24 INTEGER lmo ! dimensions ancienne couches (input)25 INTEGER lmn ! dimensions nouvelle couches (input)26 INTEGER lmomx ! dimensions ancienne couches (input)27 INTEGER lmnmx ! dimensions nouvelle couches (input)22 LOGICAL, INTENT(IN) :: ok_invertp 23 INTEGER, INTENT(IN) :: lmo ! dimensions ancienne couches 24 INTEGER, INTENT(IN) :: lmn ! dimensions nouvelle couches 25 INTEGER lmomx ! dimensions ancienne couches 26 INTEGER lmnmx ! dimensions nouvelle couches 28 27 29 28 parameter(lmomx=10000,lmnmx=10000) 30 29 31 real po(ni,nj,lmo)! niveau de pression ancienne grille32 real pn(ni,nj,lmn) ! niveau de pression nouvelle grille30 real, INTENT(IN) :: po(ni,nj,lmo) ! niveau de pression ancienne grille 31 real, INTENT(IN) :: pn(ni,nj,lmn) ! niveau de pression nouvelle grille 33 32 34 INTEGER i,j,Nhoriz,ni,nj ! nombre de point horizontale (input)33 INTEGER, INTENT(IN) :: ni,nj ! nombre de point horizontale 35 34 36 REAL varo(ni,nj,lmo) ! var dans l'ancienne grille (input)37 REAL varn(ni,nj,lmn) ! var dans la nouvelle grille (output)35 REAL, INTENT(IN) :: varo(ni,nj,lmo) ! var dans l'ancienne grille 36 REAL, INTENT(OUT) :: varn(ni,nj,lmn) ! var dans la nouvelle grille 38 37 39 38 real zvaro(lmomx),zpo(lmomx) … … 41 40 c Autres variables 42 41 c """""""""""""""" 43 INTEGER n, ln ,lo 42 INTEGER n, ln ,lo, i, j, Nhoriz 44 43 REAL coef 45 44
Note: See TracChangeset
for help on using the changeset viewer.