Ignore:
Timestamp:
Apr 13, 2015, 10:21:09 AM (9 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes 2216:2237 into testing branch

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/libf/phylmd/fisrtilp.F90

    r2220 r2258  
    88     frac_impa, frac_nucl, beta,                        &
    99     prfl, psfl, rhcl, zqta, fraca,                     &
    10      ztv, zpspsk, ztla, zthl, iflag_cldth,             &
     10     ztv, zpspsk, ztla, zthl, iflag_cld_th,             &
    1111     iflag_ice_thermo)
    1212
     
    8282  INTEGER ninter ! sous-intervals pour la precipitation
    8383  INTEGER ncoreczq 
    84   INTEGER iflag_cldth
     84  INTEGER iflag_cld_th
    8585  INTEGER iflag_ice_thermo
    8686  PARAMETER (ninter=5)
     
    545545           enddo
    546546
    547            if (iflag_cldth>=5) then
     547           if (iflag_cld_th>=5) then
    548548
    549549              call cloudth(klon,klev,k,ztv, &
     
    559559           endif
    560560
    561            if (iflag_cldth <= 4) then
     561           if (iflag_cld_th <= 4) then
    562562              lognormale = .true.
    563            elseif (iflag_cldth >= 6) then
     563           elseif (iflag_cld_th >= 6) then
    564564              ! lognormale en l'absence des thermiques
    565565              lognormale = fraca(:,k) < 1e-10
    566566           else
    567               ! Dans le cas iflag_cldth=5, on prend systématiquement la
     567              ! Dans le cas iflag_cld_th=5, on prend systématiquement la
    568568              ! bi-gaussienne
    569569              lognormale = .false.
     
    783783        else if (iflag_fisrtilp_qsat.gt.0) then
    784784           DO i= 1, klon
    785              if (lognormale(i)) then
    786              zt(i)=Tbef(i)
    787              else
    788785             zt(i) = zt(i) + zcond(i) * RLVTT/RCPD/(1.0+RVTMP2*(zq(i)+zcond(i)))
    789              endif
    790786           ENDDO
    791787        endif
     
    800796!                                     t_glace_max, exposant_glace)
    801797              if (iflag_t_glace.eq.0) then
    802                     zfice(i) = 1.0 - (Tbef(i)-t_glace_min_old) / (RTT-t_glace_min_old)
     798                    zfice(i) = 1.0 - (zt(i)-t_glace_min_old) / (RTT-t_glace_min_old)
    803799                    zfice(i) = MIN(MAX(zfice(i),0.0),1.0)
    804800                    zfice(i) = zfice(i)**exposant_glace_old
     
    809805         else
    810806           DO i=1, klon
    811               if (lognormale(i)) then
    812                  zt(i)=Tbef(i)
    813               else
    814807! JBM: icefrac_lsc is now a function contained in icefrac_lsc_mod
    815808!              zfice(i) = icefrac_lsc(zt(i), t_glace_min, &
    816809!                                     t_glace_max, exposant_glace)
    817810              if (iflag_t_glace.eq.0) then
    818                     zfice(i) = 1.0 - (Tbef(i)-t_glace_min_old) / (RTT-t_glace_min_old)
     811                    zfice(i) = 1.0 - (zt(i)-t_glace_min_old) / (RTT-t_glace_min_old)
    819812                    zfice(i) = MIN(MAX(zfice(i),0.0),1.0)
    820813                    zfice(i) = zfice(i)**exposant_glace_old
     
    822815              zt(i) = zt(i) + (1.-zfice(i))*zcond(i) * RLVTT/RCPD/(1.0+RVTMP2*(zq(i)+zcond(i))) &
    823816                       +zfice(i)*zcond(i) * RLSTT/RCPD/(1.0+RVTMP2*(zq(i)+zcond(i)))
    824               endif
    825817           ENDDO
    826818         endif
Note: See TracChangeset for help on using the changeset viewer.