Changeset 165
- Timestamp:
- Nov 17, 2000, 2:34:28 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ.3.3/trunk/libf/phylmd/conflx.F
r164 r165 1043 1043 cjq The variable maxpdmfdp(klon) has been introduced by Olivier Boucher 1044 1044 cjq 14/11/00 to fix the problem with the negative precipitation. 1045 REAL pdmfdp(klon,klev), maxpdmfdp(klon )1045 REAL pdmfdp(klon,klev), maxpdmfdp(klon,klev) 1046 1046 REAL prfl(klon), psfl(klon) 1047 1047 REAL pmflxr(klon,klev+1), pmflxs(klon,klev+1) 1048 1048 INTEGER kcbot(klon), kctop(klon), ktype(klon) 1049 1049 LOGICAL ldland(klon), ldcum(klon) 1050 INTEGER k, i1050 INTEGER k, kp, i 1051 1051 REAL zcons1, zcons2, zcucov, ztmelp2 1052 1052 REAL pdtime, zdp, zzp, zfac, zsnmlt, zrfl, zrnew … … 1173 1173 c panache descendant pour eliminer la negativite 1174 1174 IF ((pmflxr(i,k+1)+pmflxs(i,k+1)).LT.0.0) THEN 1175 cjq write (*,*) 'total precip negative. rain ',pmflxr(i,k+1),1176 cjq . 'snow ',pmflxs(i,k+1)1177 1175 pdmfdp(i,k) = -pmflxr(i,k)-pmflxs(i,k)-pdmfup(i,k) 1178 1176 pmflxr(i,k+1) = 0.0 … … 1192 1190 cjq as well as the evaporation. 1193 1191 cjq 1192 DO k = 1, klev 1194 1193 DO i = 1, klon 1195 maxpdmfdp(i)=0.0 1196 ENDDO 1197 DO k = ktopm2, klev 1198 DO i = 1, klon 1199 if (k.GE.kcbot(i)) then 1200 maxpdmfdp(i)=maxpdmfdp(i)+pdmfdp(i,k) 1201 endif 1202 ENDDO 1194 maxpdmfdp(i,k)=0.0 1195 ENDDO 1196 ENDDO 1197 DO k = 1, klev 1198 DO kp = k, klev 1199 DO i = 1, klon 1200 maxpdmfdp(i,k)=maxpdmfdp(i,k)+pdmfdp(i,kp) 1201 ENDDO 1202 ENDDO 1203 1203 ENDDO 1204 1204 cjq End of initialization … … 1221 1221 cjq be evaporated (surely the evaporation can't be positive): 1222 1222 zdrfl=MAX(zdrfl, 1223 . MIN(-pmflxr(i,k)-pmflxs(i,k)-maxpdmfdp(i ),0.0))1223 . MIN(-pmflxr(i,k)-pmflxs(i,k)-maxpdmfdp(i,k),0.0)) 1224 1224 cjq End of insertion 1225 1225 c … … 1242 1242 pdmfdp(i,k) = 0.0 1243 1243 pdpmel(i,k) = 0.0 1244 ENDIF 1244 ENDIF 1245 if (pmflxr(i,k) + pmflxs(i,k).lt.-1.e-26) 1246 . write(*,*) 'precip. < 1e-16 ',pmflxr(i,k) + pmflxs(i,k) 1245 1247 ENDIF 1246 1248 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.