- Timestamp:
- Oct 30, 2008, 4:37:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/libf/phylmd/cv3p_mixing.F
r991 r1041 417 417 c 418 418 c-- Compute liquid water static energy of mixed draughts 419 c IF (j .GT. i) THEN 420 c awat=elij(il,i,j)-(1.-ep(il,j))*clw(il,j) 421 c awat=amax1(awat,0.0) 422 c ELSE 423 c awat = 0. 424 c ENDIF 425 c Hent(il,i,j) = (1.-Sigij(il,i,j))*HP(il,i) 426 c : + Sigij(il,i,j)*H(il,i) 427 c : + (LV(il,j)+(cpd-cpv)*t(il,j))*awat 428 cIM 301008 beg 429 Hent(il,i,j) = (1.-Sigij(il,i,j))*HP(il,i) 430 : + Sigij(il,i,j)*H(il,i) 431 432 Elij(il,i,j) = Qent(il,i,j)-rs(il,j) 433 Elij(il,i,j) = Elij(il,i,j) 434 : + ((h(il,j)-Hent(il,i,j))*rs(il,j)*LV(il,j) 435 : / ((cpd*(1.-Qent(il,i,j))+Qent(il,i,j)*cpv) 436 : * rrv*t(il,j)*t(il,j))) 437 Elij(il,i,j) = Elij(il,i,j) 438 : / (1.+LV(il,j)*LV(il,j)*rs(il,j) 439 : / ((cpd*(1.-Qent(il,i,j))+Qent(il,i,j)*cpv) 440 : * rrv*t(il,j)*t(il,j))) 441 442 Elij(il,i,j) = max(elij(il,i,j),0.) 443 444 Elij(il,i,j) = min(elij(il,i,j),Qent(il,i,j)) 445 419 446 IF (j .GT. i) THEN 420 447 awat=elij(il,i,j)-(1.-ep(il,j))*clw(il,j) … … 423 450 awat = 0. 424 451 ENDIF 425 Hent(il,i,j) = (1.-Sigij(il,i,j))*HP(il,i) 426 : + Sigij(il,i,j)*H(il,i) 427 : + (LV(il,j)+(cpd-cpv)*t(il,j))*awat 452 453 c print *,h(il,j)-hent(il,i,j),LV(il,j)*rs(il,j)/(cpd*rrv*t(il,j)* 454 c : t(il,j)) 455 456 Hent(il,i,j) = Hent(il,i,j)+(LV(il,j)+(cpd-cpv)*t(il,j)) 457 : * awat 458 cIM 301008 end 428 459 c 429 460 c print *,'mix : i,j,hent(il,i,j),sigij(il,i,j) ',
Note: See TracChangeset
for help on using the changeset viewer.