Ignore:
Timestamp:
Apr 13, 2015, 10:21:09 AM (10 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes 2216:2237 into testing branch

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/libf/phylmd/cv3p1_closure.F90

    r2220 r2258  
    5353
    5454  ! local variables:
    55   INTEGER il, i, j, k, icbmax, i0(nloc), klfc
     55  INTEGER il, i, j, k, icbmax, i0(nloc), klfc(nloc)
    5656  REAL deltap, fac, w, amu
    5757  REAL rhodp
     
    525525
    526526!CR:Compute k at plfc
     527  DO il=1,ncum
     528           klfc(il)=nl
     529  ENDDO
    527530  DO k=1,nl
    528531     DO il=1,ncum
    529532        if ((plfc(il).lt.ph(il,k)).and.(plfc(il).ge.ph(il,k+1))) then
    530            klfc=k
     533           klfc(il)=k
    531534        endif
    532535     ENDDO
     
    540543!CR: Add large-scale component to the mass-flux
    541544!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))
     545    if ((coef_clos_ls.gt.0.).and.(plfc(il).gt.0.)) then
     546       cbmf1(il) = cbmf1(il) - coef_clos_ls*min(0.,1./RG*omega(il,klfc(il)))
    544547    endif
    545548!RC
Note: See TracChangeset for help on using the changeset viewer.