Changeset 1380 for trunk/LMDZ.MARS/libf/phymars
- Timestamp:
- Feb 25, 2015, 5:11:26 PM (10 years ago)
- Location:
- trunk/LMDZ.MARS/libf/phymars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/initracer.F
r1266 r1380 589 589 endif 590 590 591 if (callnlte) then ! NLTE requirements 592 if (nltemodel.ge.1) then 593 ! check that co2, co, o and n2 tracers are available 594 if (igcm_co2.eq.0) then 595 write(*,*) "initracer: error !!" 596 write(*,*) " with nltemodel>0, we need the co2 tracer!" 597 stop 598 endif 599 if (igcm_co.eq.0) then 600 write(*,*) "initracer: error !!" 601 write(*,*) " with nltemodel>0, we need the co tracer!" 602 stop 603 endif 604 if (igcm_o.eq.0) then 605 write(*,*) "initracer: error !!" 606 write(*,*) " with nltemodel>0, we need the o tracer!" 607 stop 608 endif 609 if (igcm_n2.eq.0) then 610 write(*,*) "initracer: error !!" 611 write(*,*) " with nltemodel>0, we need the n2 tracer!" 612 stop 613 endif 614 endif 615 endif 616 591 617 if (scavenging) then 592 618 ! verify that we indeed have ccn_mass and ccn_number tracers -
trunk/LMDZ.MARS/libf/phymars/iostart.F90
r1130 r1380 528 528 ENDIF 529 529 530 ierr=NF90_DEF_DIM(nid_restart,"number_of_advected_fields",nqtot,idim5) 530 if (nqtot.ne.0) then 531 ierr=NF90_DEF_DIM(nid_restart,"number_of_advected_fields",nqtot,idim5) 532 else 533 ! pretend nqtot=1 because 0 size implies unlimited dimension for NetCDF 534 ierr=NF90_DEF_DIM(nid_restart,"number_of_advected_fields",1,idim5) 535 endif 531 536 IF (ierr/=NF90_NOERR) THEN 532 537 write(*,*)'open_restartphy: problem defining number_of_advected_fields dimension ' -
trunk/LMDZ.MARS/libf/phymars/physiq.F
r1377 r1380 2454 2454 call WRITEDIAGFI(ngrid,"pplev","Pressure","Pa",1,zplev) 2455 2455 call WRITEDIAGFI(ngrid,"rho","rho","kg.m-3",1,rho) 2456 !call WRITEDIAGFI(ngrid,"dtrad","rad. heat. rate", &2457 ! & "K.s-1",1,dtrad/zpopsk)2458 !call WRITEDIAGFI(ngrid,'sw_htrt','sw heat. rate',2459 ! & 'w.m-2',1,zdtsw/zpopsk)2460 !call WRITEDIAGFI(ngrid,'lw_htrt','lw heat. rate',2461 ! & 'w.m-2',1,zdtlw/zpopsk)2456 call WRITEDIAGFI(ngrid,"dtrad","rad. heat. rate", & 2457 & "K.s-1",1,dtrad) 2458 call WRITEDIAGFI(ngrid,'sw_htrt','sw heat. rate', 2459 & 'w.m-2',1,zdtsw) 2460 call WRITEDIAGFI(ngrid,'lw_htrt','lw heat. rate', 2461 & 'w.m-2',1,zdtlw) 2462 2462 call WRITEDIAGFI(ngrid,"co2ice","co2 ice thickness" 2463 2463 & ,"kg.m-2",0,co2ice) -
trunk/LMDZ.MARS/libf/phymars/testphys1d.F
r1311 r1380 373 373 ! we still need to set (dummy) tracer number and names for physdem1 374 374 nq=1 375 nqtot=nq ! set value of nqtot (in infotrac module) as nq 375 376 ! allocate arrays: 376 377 allocate(tname(nq)) … … 381 382 allocate(mqtot(nq)) 382 383 do iq=1,nq 383 write(str7,'(a1,i2.2)')' q',iq384 write(str7,'(a1,i2.2)')'t',iq 384 385 tname(iq)=str7 385 386 enddo … … 797 798 CALL endg1d(1,nlayer,zlay/1000.,ndt) 798 799 799 c ======================================================== 800 write(*,*) "testphys1d: Everything is cool." 801 800 802 END 801 803
Note: See TracChangeset
for help on using the changeset viewer.