Changeset 2800 for trunk/LMDZ.MARS/libf/phymars
- Timestamp:
- Oct 13, 2022, 5:04:49 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/watercloud_mod.F
r2616 r2800 115 115 116 116 !$OMP THREADPRIVATE(firstcall) 117 117 ! HDO cycle 118 REAL :: alpha(ngrid,nlay) ! fractionation coefficient for HDO 118 119 ! Representation of sub-grid water ice clouds A. Pottier 2013 119 120 REAL :: ztclf(ngrid, nlay) … … 586 587 pdqcloud(ig,l,igcm_h2o_ice) = 587 588 & -pdqcloud(ig,l,igcm_h2o_vap) 589 ! !! HDO ice flux has to be modified in consequence 590 IF (hdo) THEN 591 ! !! Logically only condensation can happen in this case 592 IF (pdqcloud(ig,l,igcm_h2o_ice) .gt. 0.0) THEN 593 IF ( zq0(ig,l,igcm_h2o_vap) .gt. qperemin ) THEN 594 alpha(ig,l) = exp(13525./zt(ig,l)**2.-5.59d-2) 595 pdqcloud(ig,l,igcm_hdo_ice) = 596 & pdqcloud(ig,l,igcm_h2o_ice)*alpha(ig,l)* 597 & ( zq0(ig,l,igcm_hdo_vap) 598 & /zq0(ig,l,igcm_h2o_vap) ) 599 pdqcloud(ig,l,igcm_hdo_ice) = 600 & min(pdqcloud(ig,l,igcm_hdo_ice), 601 & zq0(ig,l,igcm_hdo_vap)/ptimestep) 602 ELSE 603 pdqcloud(ig,l,igcm_hdo_ice) = 0. 604 ENDIF 605 !! sublimation 606 ELSE 607 IF ( zq0(ig,l,igcm_h2o_ice) .gt. qperemin ) THEN 608 pdqcloud(ig,l,igcm_hdo_ice) = 609 & pdqcloud(ig,l,igcm_h2o_ice)* 610 & ( zq0(ig,l,igcm_hdo_ice) 611 & /zq0(ig,l,igcm_h2o_ice) ) 612 pdqcloud(ig,l,igcm_hdo_ice) = 613 & max(pdqcloud(ig,l,igcm_hdo_ice), 614 & -zq0(ig,l,igcm_hdo_ice)/ptimestep) 615 ELSE 616 pdqcloud(ig,l,igcm_hdo_ice) = 0. 617 ENDIF 618 ENDIF !IF (pdqcloud(ig,l,igcm_h2o_ice).gt.0.) 619 pdqcloud(ig,l,igcm_hdo_vap) = 620 & -pdqcloud(ig,l,igcm_hdo_ice) 621 ENDIF !IF (hdo) 588 622 ! no need to correct ccn_number, updaterad can handle this properly. 589 623 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.