Changeset 2823 for trunk/LMDZ.MARS/libf/phymars/dyn1d
- Timestamp:
- Nov 18, 2022, 10:43:43 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F
r2790 r2823 221 221 endif 222 222 223 ! check if we are going to run with or without tracers 224 write(*,*) "Run with or without tracer transport ?" 225 tracer=.false. ! default value 226 call getin("tracer",tracer) 227 write(*,*) " tracer = ",tracer 228 229 ! while we're at it, check if there is a 'traceur.def' file 223 224 ! check if there is a 'traceur.def' file 230 225 ! and process it. 231 if (tracer) then232 226 ! load tracer names from file 'traceur.def' 233 227 open(90,file='traceur.def',status='old',form='formatted', … … 246 240 write(*,*) "testphys1d: error reading number of tracers" 247 241 write(*,*) " (first line of traceur.def) " 242 stop 243 endif 244 if (nq<1) then 245 write(*,*) "testphys1d: error number of tracers" 246 write(*,*) "is nq=",nq," but must be >=1!" 248 247 stop 249 248 endif … … 318 317 write(*,*) "testphys1d: initializing tracers" 319 318 call read_profile(nq, nlayer, qsurf, q) 320 else321 ! we still need to set (dummy) tracer number and names for physdem1322 nq=1323 nqtot=nq ! set value of nqtot (in infotrac module) as nq324 ! allocate arrays:325 allocate(tname(nq))326 allocate(q(nlayer,nq))327 allocate(qsurf(nq))328 allocate(dq(nlayer,nq))329 allocate(dqdyn(nlayer,nq))330 allocate(mqtot(nq))331 do iq=1,nq332 write(str7,'(a1,i2.2)')'t',iq333 tname(iq)=str7334 enddo335 ! and just to be clean, also initialize tracers to zero for physdem1336 q(:,:)=0337 qsurf(:)=0338 endif ! of if (tracer)339 340 !write(*,*) "testphys1d q", q(1,:)341 !write(*,*) "testphys1d qsurf", qsurf342 319 343 320 c Date and local time at beginning of run
Note: See TracChangeset
for help on using the changeset viewer.
