Changeset 1448 for LMDZ5/branches/LMDZ5V1.0-dev/libf/dyn3dpar
- Timestamp:
- Nov 2, 2010, 9:35:59 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/branches/LMDZ5V1.0-dev/libf/dyn3dpar/infotrac.F90
r1446 r1448 105 105 WRITE(lunout,*) trim(modname),': Problem in opening traceur.def' 106 106 WRITE(lunout,*) trim(modname),': WARNING using defaut values' 107 nqtrue=4 ! Defaut value 107 if (planet_type=='earth') then 108 nqtrue=4 ! Default value for Earth 109 else 110 nqtrue=1 ! Default value for other planets 111 endif 108 112 END IF 109 113 if ( planet_type=='earth') then … … 162 166 ! Continue to read tracer.def 163 167 DO iq=1,nqtrue 164 READ(90, 999) hadv(iq),vadv(iq),tnom_0(iq)168 READ(90,*) hadv(iq),vadv(iq),tnom_0(iq) 165 169 END DO 166 170 CLOSE(90) 167 ELSE ! Without tracer.def, set default values (for Earth!) 168 if ((nqtrue==4).and.(planet_type=="earth")) then 171 ELSE ! Without tracer.def, set default values 172 if (planet_type=="earth") then 173 ! for Earth, default is to have 4 tracers 169 174 hadv(1) = 14 170 175 vadv(1) = 14 … … 179 184 vadv(4) = 10 180 185 tnom_0(4) = 'PB' 181 else 182 ! Error message, we need a traceur.def file 183 write(lunout,*) trim(modname),& 184 ': Cannot set default tracer names!' 185 write(lunout,*) trim(modname),' Make a traceur.def file!!!' 186 CALL abort_gcm('infotrac_init','Need a traceur.def file!',1) 187 endif ! of if (nqtrue==4) 186 else ! default for other planets 187 hadv(1) = 10 188 vadv(1) = 10 189 tnom_0(1) = 'dummy' 190 endif ! of if (planet_type=="earth") 188 191 END IF 189 192 … … 345 348 DEALLOCATE(tracnam) 346 349 347 999 FORMAT (i2,1x,i2,1x,a15)348 349 350 END SUBROUTINE infotrac_init 350 351
Note: See TracChangeset
for help on using the changeset viewer.