Changeset 2201 for LMDZ5/trunk/libf/phylmd/cv3p1_closure.F90
- Timestamp:
- Feb 10, 2015, 3:23:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/cv3p1_closure.F90
r1992 r2201 3 3 4 4 SUBROUTINE cv3p1_closure(nloc, ncum, nd, icb, inb, pbase, plcl, p, ph, tv, & 5 tvp, buoy, supmax, ok_inhib, ale, alp, sig, w0, ptop2, cape, cin, m, &5 tvp, buoy, supmax, ok_inhib, ale, alp, omega,sig, w0, ptop2, cape, cin, m, & 6 6 iflag, coef, plim1, plim2, asupmax, supmax0, asupmaxmin, cbmf, plfc, & 7 7 wbeff) … … 37 37 LOGICAL ok_inhib ! enable convection inhibition by dryness 38 38 REAL ale(nloc), alp(nloc) 39 REAL omega(nloc,nd) 39 40 40 41 ! input/output: … … 52 53 53 54 ! local variables: 54 INTEGER il, i, j, k, icbmax, i0(nloc) 55 INTEGER il, i, j, k, icbmax, i0(nloc), klfc 55 56 REAL deltap, fac, w, amu 56 57 REAL rhodp … … 523 524 END DO 524 525 526 !CR:Compute k at plfc 527 DO k=1,nl 528 DO il=1,ncum 529 if ((plfc(il).lt.ph(il,k)).and.(plfc(il).ge.ph(il,k+1))) then 530 klfc=k 531 endif 532 ENDDO 533 ENDDO 534 !RC 525 535 526 536 DO il = 1, ncum … … 528 538 ! c cbmf1(il) = alp2(il)/(0.5*wb*wb-Cin(il)) 529 539 cbmf1(il) = alp2(il)/(2.*wbeff(il)*wbeff(il)-cin(il)) 540 !CR: Add large-scale component to the mass-flux 541 !encore connu sous le nom "Experience du tube de dentifrice" 542 if (coef_clos_ls.gt.0.) then 543 cbmf1(il) = cbmf1(il) - coef_clos_ls*min(0.,1./RG*omega(il,klfc)) 544 endif 545 !RC 530 546 IF (cbmf1(il)==0 .AND. alp2(il)/=0.) THEN 531 547 WRITE (lunout, *) 'cv3p1_closure cbmf1=0 and alp NE 0 il alp2 alp cin ' &
Note: See TracChangeset
for help on using the changeset viewer.