Changeset 3605 for LMDZ6/branches/Ocean_skin/libf/phylmd/cv3p_mixing.F90
- Timestamp:
- Nov 21, 2019, 4:43:45 PM (5 years ago)
- Location:
- LMDZ6/branches/Ocean_skin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Ocean_skin
-
LMDZ6/branches/Ocean_skin/libf/phylmd/cv3p_mixing.F90
r2905 r3605 1 1 SUBROUTINE cv3p_mixing(nloc, ncum, nd, na, ntra, icb, nk, inb, & 2 ph, t, rr, rs, u, v, tra, h, lv, lf, frac, q nk, &2 ph, t, rr, rs, u, v, tra, h, lv, lf, frac, qta, & 3 3 unk, vnk, hp, tv, tvp, ep, clw, sig, & 4 4 Ment, Qent, hent, uent, vent, nent, & … … 29 29 INTEGER, DIMENSION (nloc), INTENT (IN) :: icb, inb, nk 30 30 REAL, DIMENSION (nloc, nd), INTENT (IN) :: sig 31 REAL, DIMENSION (nloc), INTENT (IN) :: qnk, unk, vnk 31 REAL, DIMENSION (nloc), INTENT (IN) :: unk, vnk 32 REAL, DIMENSION (nloc, nd), INTENT (IN) :: qta 32 33 REAL, DIMENSION (nloc, nd+1), INTENT (IN) :: ph 33 34 REAL, DIMENSION (nloc, nd), INTENT (IN) :: t, rr, rs … … 173 174 .AND. (j<=inb(il))) THEN 174 175 175 rti = qnk(il) - ep(il, i)*clw(il, i) 176 !! rti = qnk(il) - ep(il, i)*clw(il, i) 177 rti = qta(il,i-1) - ep(il, i)*clw(il, i) 176 178 bf2 = 1. + lv(il, j)*lv(il, j)*rs(il, j)/(rrv*t(il,j)*t(il,j)*cpd) 177 179 !jyg(from aj)< … … 219 221 Sij(il, i, j) = amax1(0.0, Sij(il,i,j)) 220 222 Sij(il, i, j) = amin1(1.0, Sij(il,i,j)) 223 ELSE IF (j > i) THEN 224 IF (prt_level >= 10) THEN 225 print *,'cv3p_mixing i, j, Sij given by the no-precip eq. ', i, j, Sij(il,i,j) 226 ENDIF 221 227 END IF ! new 222 228 END DO … … 248 254 !!! Ment(il,i,i)=m(il,i) 249 255 Ment(il, i, i) = 1. 250 Qent(il, i, i) = qnk(il) - ep(il, i)*clw(il, i) 256 !! Qent(il, i, i) = qnk(il) - ep(il, i)*clw(il, i) 257 Qent(il, i, i) = qta(il,i-1) - ep(il, i)*clw(il, i) 251 258 uent(il, i, i) = unk(il) 252 259 vent(il, i, i) = vnk(il) … … 332 339 IF (i>=icb(il) .AND. i<=inb(il)) THEN 333 340 lwork(il) = (nent(il,i)/=0) 334 rti = qnk(il) - ep(il, i)*clw(il, i) 341 !! rti = qnk(il) - ep(il, i)*clw(il, i) 342 rti = qta(il,i-1) - ep(il, i)*clw(il, i) 335 343 !jyg< 336 344 IF (cvflag_ice) THEN … … 462 470 lwork(il)) THEN 463 471 IF (Sij(il,i,j)>0.0) THEN 464 rti = qnk(il) - ep(il, i)*clw(il, i) 472 !! rti = qnk(il) - ep(il, i)*clw(il, i) 473 rti = qta(il,i-1) - ep(il, i)*clw(il, i) 465 474 Qmixmax(il) = Qmix(Sjmax(il)) 466 475 Qmixmin(il) = Qmix(Sjmin(il)) … … 590 599 lwork(il)) THEN 591 600 IF (Sij(il,i,j)>0.0) THEN 592 rti = qnk(il) - ep(il, i)*clw(il, i) 601 !! rti = qnk(il) - ep(il, i)*clw(il, i) 602 rti = qta(il,i-1) - ep(il, i)*clw(il, i) 593 603 !!! Ment(il,i,i) = m(il,i)*abs(Qmixmax(il)*(1.-Sjmax(il)) 594 604 Ment(il, i, i) = abs(Qmixmax(il)*(1.-Sjmax(il))+Rmixmax(il) - & … … 659 669 ! cc Ment(il,i,i)=m(il,i) 660 670 Ment(il, i, i) = 1. 661 Qent(il, i, i) = qnk(il) - ep(il, i)*clw(il, i) 671 !! Qent(il, i, i) = qnk(il) - ep(il, i)*clw(il, i) 672 Qent(il, i, i) = qta(il,i-1) - ep(il, i)*clw(il, i) 662 673 uent(il, i, i) = unk(il) 663 674 vent(il, i, i) = vnk(il)
Note: See TracChangeset
for help on using the changeset viewer.