Changeset 2507 for LMDZ5/trunk/libf/phylmd
- Timestamp:
- May 4, 2016, 4:36:48 PM (9 years ago)
- Location:
- LMDZ5/trunk/libf/phylmd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/fisrtilp.F90
r2500 r2507 623 623 if (iflag_t_glace.eq.0) then 624 624 zdelta = MAX(0.,SIGN(1.,t_glace_min_old-Tbef(i))) 625 else if (iflag_t_glace. eq.1) then625 else if (iflag_t_glace.ge.1) then 626 626 zdelta = MAX(0.,SIGN(1.,t_glace_min-Tbef(i))) 627 627 endif … … 673 673 else 674 674 ! Iteration pour convergence avec qsat(T) 675 if (iflag_t_glace. eq.1) then675 if (iflag_t_glace.ge.1) then 676 676 CALL icefrac_lsc(klon,zt(:),pplay(:,k)/paprs(:,1),zfice(:)) 677 677 endif … … 687 687 endif 688 688 689 if (iflag_t_glace. eq.1) then689 if (iflag_t_glace.ge.1) then 690 690 dzfice(i)= exposant_glace * zfice(i)**(exposant_glace-1) / (t_glace_min - t_glace_max) 691 691 endif … … 811 811 endif 812 812 ELSE 813 if (iflag_t_glace. eq.1) then813 if (iflag_t_glace.ge.1) then 814 814 CALL icefrac_lsc(klon,zt(:),pplay(:,k)/paprs(:,1),zfice(:)) 815 815 endif -
LMDZ5/trunk/libf/phylmd/icefrac_lsc_mod.F90
r2109 r2507 14 14 ! Doutriaux-Boucher & Quaas 2004, section 2.2.) 15 15 ! 16 ! (JBM 3/14 8/14 )16 ! (JBM 3/14 8/14 5/16) 17 17 18 USE print_control_mod, ONLY: lunout, prt_level 18 19 INCLUDE "nuage.h" 19 20 … … 33 34 34 35 DO ip=1,np 35 www=(max(sig(ip)-sig0,0.))/(1.-sig0) ! w=1 at the surface and 0 for sig < sig0 36 IF (iflag_t_glace.EQ.1) THEN 37 ! Transition to ice close to surface for T<Tmax 38 ! w=1 at the surface and 0 for sig < sig0 39 www=(max(sig(ip)-sig0,0.))/(1.-sig0) 40 ELSEIF (iflag_t_glace.GE.2) THEN 41 ! No convertion to ice close to surface 42 www = 0. 43 ENDIF 36 44 tmin_tmp=www*t_glace_max+(1.-www)*t_glace_min 37 45 icefrac_tmp= 1.0 - (temp(ip)-tmin_tmp) / (t_glace_max-tmin_tmp)
Note: See TracChangeset
for help on using the changeset viewer.