Changeset 1267 for trunk/LMDZ.GENERIC/libf/phystd
- Timestamp:
- May 19, 2014, 10:22:08 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/rcm1d.F
r1216 r1267 249 249 allocate(dqdyn(nlayermx,nq)) 250 250 else 251 allocate(tname(1)) ! tname(1) is used below, even if nq=0 251 write(*,*) "rcm1d: Error. You set tracer=.true." 252 write(*,*) " but # of tracers in traceur.def is ",nq 253 stop 252 254 endif 253 255 … … 273 275 endif 274 276 enddo 275 !if (i_co2_ice==0) then276 ! write(*,*) "rcm1d: error, we need a 'co2_ice' tracer"277 ! write(*,*) " (add one to traceur.def)"278 ! stop279 !endif280 277 else 281 278 write(*,*) 'Cannot find required file "traceur.def"' … … 286 283 close(90) 287 284 288 else 289 nq=nqtot 290 if (nq>0) then 291 allocate(tname(nq)) 292 allocate(q(nlayermx,nq)) 293 allocate(qsurf(nq)) 294 allocate(dq(nlayermx,nq)) 295 allocate(dqdyn(nlayermx,nq)) 296 else 297 allocate(tname(1)) ! tname(1) is used below, even if nq=0 298 endif 285 else ! of if (tracer) 286 nqtot=0 287 nq=0 288 ! still, make allocations for 1 dummy tracer 289 allocate(tname(1)) 290 allocate(qsurf(1)) 291 allocate(q(nlayermx,1)) 292 allocate(dq(nlayermx,1)) 293 299 294 ! Check that tracer boolean is compliant with number of tracers 300 295 ! -- otherwise there is an error (and more generally we have to be consistent) 301 if ( .not.tracer .and.nq .ge. 1) then296 if (nq .ge. 1) then 302 297 write(*,*) "------------------------------" 303 298 write(*,*) "rcm1d: You set tracer=.false." 304 write(*,*) " But compiled with 1 tracer or more"299 write(*,*) " But set number of tracers to ",nq 305 300 write(*,*) " > If you want tracers, set tracer=.true." 306 write(*,*) " > If you do not want tracers, compile with -t 0"307 301 write(*,*) "------------------------------" 308 302 stop 309 303 endif 310 ! we still need to set (dummy) tracer names for physdem1311 do iq=1,nq312 write(str7,'(a1,i2.2)')'q',iq313 tname(iq)=str7314 enddo315 ! actually, we'll need at least one "co2_ice" tracer316 ! (for surface CO2 ice)317 i_co2_ice=1318 tname(i_co2_ice)="co2_ice"319 304 endif ! of if (tracer) 320 305
Note: See TracChangeset
for help on using the changeset viewer.