Changeset 1191 for LMDZ4/branches/LMDZ4-dev/libf/dyn3dpar
- Timestamp:
- Jun 24, 2009, 11:56:13 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/branches/LMDZ4-dev/libf/dyn3dpar/infotrac.F90
r1180 r1191 21 21 INTEGER, ALLOCATABLE, DIMENSION(:), SAVE :: niadv ! equivalent dyn / physique 22 22 23 ! Variables for INCA23 ! conv_flg(it)=0 : convection desactivated for tracer number it 24 24 INTEGER, ALLOCATABLE, DIMENSION(:), SAVE :: conv_flg 25 ! pbl_flg(it)=0 : boundary layer diffusion desactivaded for tracer number it 25 26 INTEGER, ALLOCATABLE, DIMENSION(:), SAVE :: pbl_flg 26 27 28 CHARACTER(len=4),SAVE :: type_trac 29 27 30 CONTAINS 28 31 … … 80 83 descrq(20)='SLP' 81 84 descrq(30)='PRA' 85 86 87 IF (config_inca=='none') THEN 88 type_trac='lmdz' 89 ELSE 90 type_trac='inca' 91 END IF 82 92 83 93 !----------------------------------------------------------------------- … … 87 97 ! 88 98 !----------------------------------------------------------------------- 89 IF ( config_inca == 'none') THEN99 IF (type_trac == 'lmdz') THEN 90 100 OPEN(90,file='traceur.def',form='formatted',status='old', iostat=ierr) 91 101 IF(ierr.EQ.0) THEN … … 109 119 END IF 110 120 ! 111 ! Allocate variables depending on nqtrue 121 ! Allocate variables depending on nqtrue and nbtr 112 122 ! 113 123 ALLOCATE(tnom_0(nqtrue), hadv(nqtrue), vadv(nqtrue)) 114 115 IF (config_inca /= 'none') THEN 116 ! Varaibles only needed in case of INCA 117 ALLOCATE(conv_flg(nbtr), pbl_flg(nbtr), tracnam(nbtr)) 118 END IF 119 124 ALLOCATE(conv_flg(nbtr), pbl_flg(nbtr), tracnam(nbtr)) 125 conv_flg(:) = 1 ! convection activated for all tracers 126 pbl_flg(:) = 1 ! boundary layer activated for all tracers 127 120 128 !----------------------------------------------------------------------- 121 129 ! 2) Choix des schemas d'advection pour l'eau et les traceurs … … 144 152 ! Get choice of advection schema from file tracer.def or from INCA 145 153 !--------------------------------------------------------------------- 146 IF ( config_inca == 'none') THEN154 IF (type_trac == 'lmdz') THEN 147 155 IF(ierr.EQ.0) THEN 148 156 ! Continue to read tracer.def … … 172 180 END DO 173 181 174 ELSE ! config_inca='aero' ou 'chem'182 ELSE ! type_trac=inca : config_inca='aero' ou 'chem' 175 183 ! le module de chimie fournit les noms des traceurs 176 184 ! et les schemas d'advection associes. … … 191 199 END DO 192 200 193 END IF ! config_inca201 END IF ! type_trac 194 202 195 203 !----------------------------------------------------------------------- … … 319 327 ! 320 328 DEALLOCATE(tnom_0, hadv, vadv) 321 IF (config_inca /= 'none')DEALLOCATE(tracnam)329 DEALLOCATE(tracnam) 322 330 323 331 999 FORMAT (i2,1x,i2,1x,a8)
Note: See TracChangeset
for help on using the changeset viewer.