Changeset 3495 for LMDZ6/trunk/libf
- Timestamp:
- May 9, 2019, 7:41:51 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/cloudth_mod.F90
r3493 r3495 1143 1143 ctot_vol(ind1,ind2)=fraca(ind1,ind2)*cth_vol(ind1,ind2)+(1.-1.*fraca(ind1,ind2))*cenv_vol(ind1,ind2) 1144 1144 1145 1146 1147 1148 1149 1150 1145 ELSE IF (iflag_cloudth_vert == 5) THEN 1151 1146 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 … … 1198 1193 ENDIF ! of if (iflag_cloudth_vert==1 or 3 or 4) 1199 1194 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 1201 1197 ctot(ind1,ind2)=0. 1202 1198 ctot_vol(ind1,ind2)=0. … … 1225 1221 ! qlbef=Max(po(ind1)-zqsatenv(ind1,ind2),0.) 1226 1222 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) 1228 1224 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. 1230 1227 1231 1228 1232 1229 sigma1s=ratqs(ind1,ind2)*zqenv(ind1) 1230 sigma2s=0. 1233 1231 1234 1232 sqrt2pi=sqrt(2.*pi) 1235 1233 xenv=senv/(sqrt(2.)*sigma1s) 1236 1234 ctot(ind1,ind2)=0.5*(1.+1.*erf(xenv)) 1235 ctot_vol(ind1,ind2)=ctot(ind1,ind2) 1237 1236 qltot(ind1,ind2)=sigma1s*((exp(-1.*xenv**2)/sqrt2pi)+xenv*sqrt(2.)*cenv(ind1,ind2)) 1238 1237 1239 1238 if (ctot(ind1,ind2).lt.1.e-3) then 1240 1239 ctot(ind1,ind2)=0. 1241 qcloud(ind1)=zqsatenv(ind1,ind2) 1240 qcloud(ind1)=zqsatenv(ind1,ind2) 1242 1241 1243 1242 else 1244 1243 1245 ctot(ind1,ind2)=ctot(ind1,ind2)1244 ! ctot(ind1,ind2)=ctot(ind1,ind2) 1246 1245 qcloud(ind1)=qltot(ind1,ind2)/ctot(ind1,ind2)+zqsatenv(ind1,ind2) 1247 1246
Note: See TracChangeset
for help on using the changeset viewer.