Changeset 2224 for LMDZ5/trunk/libf


Ignore:
Timestamp:
Mar 11, 2015, 12:23:40 PM (9 years ago)
Author:
crio
Message:

cv3p1_closure: Bug fix in the toothpaste closure computation (dimension of klfc).
physiq: check number of H2O tracers if thermodynamical effect of ice is included. Stop simulation if ice water is missing.

Location:
LMDZ5/trunk/libf/phylmd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/cv3p1_closure.F90

    r2201 r2224  
    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
  • LMDZ5/trunk/libf/phylmd/physiq.F90

    r2221 r2224  
    924924     print*, '================================================='
    925925     !
     926!CR: check sur le nb de traceurs de l eau
     927     if ((iflag_ice_thermo.gt.0).and.(nqo==2)) then
     928          WRITE (lunout, *) ' iflag_ice_thermo==1 requires 3 H2O tracers (H2Ov, H2Ol, H2Oi)', ' but nqo=', nqo, &
     929          '. Might as well stop here.'
     930          STOP
     931     endif
     932
    926933     dnwd0=0.0
    927934     ftd=0.0
Note: See TracChangeset for help on using the changeset viewer.