Changeset 1036 for trunk/LMDZ.MARS/libf/phymars/physdem.F
- Timestamp:
- Sep 11, 2013, 2:34:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/physdem.F
r999 r1036 3 3 . alb,ith,pzmea,pzstd,pzsig,pzgam,pzthe) 4 4 5 use infotrac, only: nqtot, tnom 5 6 implicit none 6 7 c … … 32 33 #include "netcdf.inc" 33 34 #include "dimphys.h" 34 #include "advtrac.h"35 !#include "advtrac.h" 35 36 #include "callkeys.h" 36 37 c … … 585 586 ! qsurf02, ...) 586 587 count=0 587 do iq=1,nq mx588 do iq=1,nqtot 588 589 txt= " " 589 590 write(txt,'(a1,i2.2)')'q',iq … … 596 597 endif 597 598 enddo 598 if (count.eq.nq mx) then599 if (count.eq.nqtot) then 599 600 write(*,*) "physdem0:tracers seem to follow old naming ", 600 601 & "convention (qsurf01,qsurf02,...)" … … 602 603 write(*,*) " but you should run newstart to rename them" 603 604 oldtracernames=.true. 604 endif ! of if (count.eq.nq mx)605 endif ! of if (count.eq.nqtot) 605 606 606 607 IF(nq.GE.1) THEN … … 693 694 . phystep,time, 694 695 . tsurf,tsoil,co2ice,emis,q2,qsurf) 696 use infotrac, only: nqtot, tnom 695 697 implicit none 696 698 c … … 720 722 #include "netcdf.inc" 721 723 #include "dimphys.h" 722 #include "advtrac.h"724 !#include "advtrac.h" 723 725 #include "callkeys.h" 724 726 c … … 918 920 IF (firstcall) THEN 919 921 count=0 920 do iq=1,nq mx922 do iq=1,nqtot 921 923 txt= " " 922 924 write(txt,'(a1,i2.2)')'q',iq … … 929 931 endif 930 932 enddo 931 if (count.eq.nq mx) then933 if (count.eq.nqtot) then 932 934 write(*,*) "physdem1:tracers seem to follow old naming ", 933 935 & "convention (qsurf01,qsurf02,...)" … … 935 937 write(*,*) " but you should run newstart to rename them" 936 938 oldtracernames=.true. 937 endif ! of if (count.eq.nq mx)939 endif ! of if (count.eq.nqtot) 938 940 ENDIF ! of if(firstcall) 939 941 940 942 ! If computing water cycle with ice, move surface ice 941 ! back to qsurf(nq mx)943 ! back to qsurf(nqtot) 942 944 IF (oldtracernames .and. water) THEN 943 945 !"loop" to avoid potential out-of-bounds on arrays 944 write(*,*)'physdem1: moving surface water ice to index ',nq mx945 do iq=nq mx,nqmx946 write(*,*)'physdem1: moving surface water ice to index ',nqtot 947 do iq=nqtot,nqtot 946 948 qsurf(1:ngridmx,iq)=qsurf(1:ngridmx,iq-1) 947 949 qsurf(1:ngridmx,iq-1)=0
Note: See TracChangeset
for help on using the changeset viewer.