Ignore:
Timestamp:
May 9, 2019, 7:41:51 PM (5 years ago)
Author:
idelkadi
Message:

Correction de l'erreur introduite dans la version svn3493

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/cloudth_mod.F90

    r3493 r3495  
    11431143      ctot_vol(ind1,ind2)=fraca(ind1,ind2)*cth_vol(ind1,ind2)+(1.-1.*fraca(ind1,ind2))*cenv_vol(ind1,ind2)
    11441144
    1145 
    1146 
    1147 
    1148 
    1149 
    11501145      ELSE IF (iflag_cloudth_vert == 5) THEN
    11511146      sigma1s=(0.71794+0.000498239*dz(ind1,ind2))*(fraca(ind1,ind2)**0.5)/(1-fraca(ind1,ind2))*(((sth-senv)**2)**0.5)+ratqs(ind1,ind2)*po(ind1) !Environment
     
    11981193      ENDIF ! of if (iflag_cloudth_vert==1 or 3 or 4)
    11991194
    1200       if (ctot(ind1,ind2).lt.1.e-10) then
     1195!      if (ctot(ind1,ind2).lt.1.e-10) then
     1196      if (cenv(ind1,ind2).lt.1.e-10.or.cth(ind1,ind2).lt.1.e-10) then
    12011197      ctot(ind1,ind2)=0.
    12021198      ctot_vol(ind1,ind2)=0.
     
    12251221!      qlbef=Max(po(ind1)-zqsatenv(ind1,ind2),0.)
    12261222      zthl(ind1,ind2)=t(ind1,ind2)*(101325/paprs(ind1,ind2))**(rdd/cppd)
    1227       alenv=(0.622*Lv*zqsatenv(ind1,ind2))/(rdd*zthl(ind1,ind2)**2) 
     1223      alenv=(0.622*Lv*zqsatenv(ind1,ind2))/(rdd*zthl(ind1,ind2)**2)
    12281224      aenv=1./(1.+(alenv*Lv/cppd))
    1229       senv=aenv*(po(ind1)-zqsatenv(ind1,ind2))
     1225      senv=aenv*(po(ind1)-zqsatenv(ind1,ind2))
     1226      sth=0.
    12301227     
    12311228
    12321229      sigma1s=ratqs(ind1,ind2)*zqenv(ind1)
     1230      sigma2s=0.
    12331231
    12341232      sqrt2pi=sqrt(2.*pi)
    12351233      xenv=senv/(sqrt(2.)*sigma1s)
    12361234      ctot(ind1,ind2)=0.5*(1.+1.*erf(xenv))
     1235      ctot_vol(ind1,ind2)=ctot(ind1,ind2)
    12371236      qltot(ind1,ind2)=sigma1s*((exp(-1.*xenv**2)/sqrt2pi)+xenv*sqrt(2.)*cenv(ind1,ind2))
    12381237     
    12391238      if (ctot(ind1,ind2).lt.1.e-3) then
    12401239      ctot(ind1,ind2)=0.
    1241       qcloud(ind1)=zqsatenv(ind1,ind2) 
     1240      qcloud(ind1)=zqsatenv(ind1,ind2)
    12421241
    12431242      else   
    12441243               
    1245       ctot(ind1,ind2)=ctot(ind1,ind2)
     1244!      ctot(ind1,ind2)=ctot(ind1,ind2)
    12461245      qcloud(ind1)=qltot(ind1,ind2)/ctot(ind1,ind2)+zqsatenv(ind1,ind2)
    12471246
Note: See TracChangeset for help on using the changeset viewer.