Changeset 1036 for trunk/LMDZ.MARS/libf/phymars/newcondens.F
- Timestamp:
- Sep 11, 2013, 2:34:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/newcondens.F
r890 r1036 6 6 $ fluxsurf_sw,zls) 7 7 8 use tracer_mod, only: noms 8 9 IMPLICIT NONE 9 10 c======================================================================= … … 61 62 #include "paramet.h" 62 63 #include "callkeys.h" 63 #include "tracer.h"64 !#include "tracer.h" 64 65 65 66 c----------------------------------------------------------------------- … … 195 196 if (tracer) then 196 197 c Prepare Special treatment if one of the tracer is CO2 gas 197 do iq=1,nq mx198 do iq=1,nq 198 199 if (noms(iq).eq."co2") then 199 200 ico2=iq … … 238 239 END DO 239 240 240 DO iq=1,nq mx241 DO iq=1,nq 241 242 DO l=1,nlayer 242 243 DO ig=1,ngrid … … 531 532 zu(l) =pu(ig,l) +pdu( ig,l) *ptimestep 532 533 zv(l) =pv(ig,l) +pdv( ig,l) *ptimestep 533 do iq=1,nq mx534 do iq=1,nq 534 535 zq(l,iq)=pq(ig,l,iq)+pdq(ig,l,iq)*ptimestep 535 536 enddo … … 564 565 zum(1) = 0 565 566 zvm(1) = 0 566 do iq=1,nq mx567 do iq=1,nq 567 568 zqm(1,iq)=0. ! most tracer do not condense ! 568 569 enddo … … 577 578 call vl1d(zu ,2.,masse,w,zum) 578 579 call vl1d(zv ,2.,masse,w,zvm) 579 do iq=1,nq mx580 do iq=1,nq 580 581 do l=1,nlayer 581 582 zq1(l)=zq(l,iq) … … 602 603 zum(nlayer+1)= zu(nlayer) ! should not be used, but... 603 604 zvm(nlayer+1)= zv(nlayer) ! should not be used, but... 604 do iq=1,nq mx605 do iq=1,nq 605 606 zqm(nlayer+1,iq)= zq(nlayer,iq) 606 607 enddo … … 637 638 638 639 c Tendencies on Q 639 do iq=1,nq mx640 do iq=1,nq 640 641 ! if (noms(iq).eq.'co2') then 641 642 if (iq.eq.ico2) then … … 668 669 if(pq(ig,1,ico2)+(pdq(ig,1,ico2)+pdqc(ig,1,ico2))*ptimestep 669 670 & .lt.qco2min) then 670 do iq=1,nq mx671 do iq=1,nq 671 672 zq(1,iq)=pq(ig,1,iq) 672 673 & +(pdq(ig,1,iq)+pdqc(ig,1,iq))*ptimestep … … 675 676 Sm(1) = masse(1) 676 677 do l =2,nlayermx 677 do iq=1,nq mx678 do iq=1,nq 678 679 zq(l,iq)=pq(ig,l,iq) 679 680 & +(pdq(ig,l,iq)+pdqc(ig,l,iq))*ptimestep … … 693 694 end do 694 695 99 continue 695 do iq=1,nq mx696 do iq=1,nq 696 697 qmix=zq(nmix,iq) 697 698 & +(Smq(nmix-1,iq)-zq(nmix,iq)*Sm(nmix-1))/mixmas
Note: See TracChangeset
for help on using the changeset viewer.