Changeset 2988 for trunk/LMDZ.MARS/libf/phymars/improvedclouds_mod.F
- Timestamp:
- Jul 3, 2023, 6:40:46 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/improvedclouds_mod.F
r2984 r2988 298 298 spenttime = 0. 299 299 ending_ts=.false. 300 print*, "ig,l :", ig, l301 300 DO while (.not.ending_ts) 302 301 microtimestep=ptimestep/real(zimicro(ig,l)) 303 zq0(1:ngrid,1:nlay,1:nq) = zq 302 c Initialize tracers for scavenging + hdo computations (JN) 303 DO i=1,nq 304 zq0(ig,l,i)=zq(ig,l,i) 305 ENDDO !i=1,nq 304 306 305 307 ! Check if we are integrating over ptimestep … … 577 579 & subpdtcloud(ig,l))*microtimestep 578 580 579 c Prevent negative tracers 580 WHERE( zq(1:ngrid,1:nlay,1:nq) < 1.e-30 ) 581 & zq(1:ngrid,1:nlay,1:nq) = 1.e-30 581 c Prevent negative tracers ! JN 582 DO i=1,nq 583 IF(zq(ig,l,i).lt.1.e-30) zq(ig,l,i)=1.e-30 584 ENDDO !i=1,nq 582 585 583 586 c Increment time spent in here … … 758 761 c zimicro = 30 759 762 c Coefficients good enough for present-day Mars : 760 alpha = 1.87485684e+09761 beta = 1.45655856e+00763 c alpha = 1.87485684e+09 764 c beta = 1.45655856e+00 762 765 c Coefficients covering high obliquity scenarios : 763 calpha=3.36711332e+15764 cbeta=1.98636414e+00766 alpha=3.36711332e+15 767 beta=1.98636414e+00 765 768 c nimicro=min(max(alpha*abs(potcond)**beta,5.),7000.) 766 769 c zimicro=ceiling((ptimestep/timeleft)*nimicro)
Note: See TracChangeset
for help on using the changeset viewer.