- Timestamp:
- Jul 3, 2023, 6:40:46 PM (17 months ago)
- Location:
- trunk/LMDZ.MARS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/changelog.txt
r2984 r2988 4081 4081 retrocompatibility with imicro. 4082 4082 + simpleclouds working 4083 4084 == 03/07/2023 == JN 4085 Bugfix in improvedclouds from previous commit (r2984) where loops on 4086 (ngrid,nlay) where conducted within big (ngrid,nlay) loop. Two occurrences : 4087 initialization of zq0 and preventing negative tracers. -
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.