Changeset 5412 for LMDZ6/trunk/libf/phylmd/lmdz_lscp.f90
- Timestamp:
- Dec 16, 2024, 5:54:52 PM (8 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/lmdz_lscp.f90
r5411 r5412 119 119 USE lmdz_lscp_ini, ONLY : iflag_autoconversion, ffallv_con, ffallv_lsc, min_frac_th_cld 120 120 USE lmdz_lscp_ini, ONLY : RCPD, RLSTT, RLVTT, RLMLT, RVTMP2, RTT, RD, RG 121 USE lmdz_lscp_ini, ONLY : ok_poprecip 121 USE lmdz_lscp_ini, ONLY : ok_poprecip, ok_bug_phase_lscp 122 122 USE lmdz_lscp_ini, ONLY : ok_ice_supersat, ok_unadjusted_clouds, iflag_icefrac 123 123 … … 1173 1173 ! Note that compared to fisrtilp, we always assume iflag_bergeron=2 1174 1174 1175 IF (ok_bug_phase_lscp) THEN 1175 1176 zqpreci(i)=(zcond(i)-zoliq(i))*zfice(i) 1176 1177 zqprecl(i)=(zcond(i)-zoliq(i))*(1.-zfice(i)) 1178 ELSE 1179 zqpreci(i)=zcond(i)*zfice(i)-zoliqi(i) 1180 zqprecl(i)=zcond(i)*(1.-zfice(i))-zoliql(i) 1181 ENDIF 1177 1182 zcp=RCPD*(1.0+RVTMP2*(zq(i)+zmqc(i)+zcond(i))) 1178 1183 coef1 = rneb(i,k)*RLSTT/zcp*zdqsdT_raw(i) … … 1265 1270 DO i=1,klon 1266 1271 IF (ziflprev(i) .NE. 0.0) THEN 1267 radocondi(i,k)=zoliq (i)*zfice(i)+zqpreci(i)+ziflprev(i)/zrho(i,k+1)/velo(i,k+1)1272 radocondi(i,k)=zoliqi(i)+zqpreci(i)+ziflprev(i)/zrho(i,k+1)/velo(i,k+1) 1268 1273 ELSE 1269 radocondi(i,k)=zoliq (i)*zfice(i)+zqpreci(i)1274 radocondi(i,k)=zoliqi(i)+zqpreci(i) 1270 1275 ENDIF 1271 1276 radocond(i,k)=radocondl(i,k)+radocondi(i,k) … … 1375 1380 subfra(i,k) = 1. - cf_seri(i,k) - issrfra(i,k) 1376 1381 qsub(i,k) = zq(i) - qvc(i) - qissr(i,k) 1377 qcld(i,k) = qvc(i) + z fice(i) * zoliq(i)1382 qcld(i,k) = qvc(i) + zoliq(i) 1378 1383 ENDDO 1379 1384 ENDIF … … 1389 1394 pfraclr(i,k)=znebprecipclr(i) 1390 1395 pfracld(i,k)=znebprecipcld(i) 1391 d_ql(i,k) = (1-zfice(i))*zoliq(i)1392 d_qi(i,k) = zfice(i)*zoliq(i)1393 1396 d_q(i,k) = zq(i) - qt(i,k) 1394 ! c_iso: same for isotopes1395 1397 d_t(i,k) = zt(i) - temp(i,k) 1398 1399 IF (ok_bug_phase_lscp) THEN 1400 d_ql(i,k) = (1-zfice(i))*zoliq(i) 1401 d_qi(i,k) = zfice(i)*zoliq(i) 1402 ELSE 1403 d_ql(i,k) = zoliql(i) 1404 d_qi(i,k) = zoliqi(i) 1405 ENDIF 1406 1396 1407 ENDDO 1397 1408
Note: See TracChangeset
for help on using the changeset viewer.