Ignore:
Timestamp:
Dec 4, 2017, 6:35:57 PM (7 years ago)
Author:
mlefevre
Message:

MESOSCALE GENERIC. added turb_mod and changed turbdiff to send info on ustar to dynamical core in LES mode. by the way ustar is now calculated.

Location:
trunk/LMDZ.GENERIC/libf/phystd
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/turbdiff.F90

    r1477 r1834  
    1313      use comcstfi_mod, only: rcp, g, r, cpp
    1414      use callkeys_mod, only: water,tracer,nosurf
    15 
     15#ifdef MESOSCALE
     16      use turb_mod, only : ustar
     17      use comm_wrf, only : comm_LATENT_HF
     18#endif
    1619      implicit none
    1720
     
    259262      ENDDO
    260263!we treat only winds, energy and tracers coefficients will be computed with upadted winds
    261  
    262264!JL12 calculate the flux coefficients (tables multiplied elements by elements)
    263265      zfluxv(1:ngrid,1:nlay)=zkv(1:ngrid,1:nlay)*zb0(1:ngrid,1:nlay)
     
    359361         zcdh(ig) = zcdh_true(ig)*sqrt(zu2)
    360362         zkh(ig,1)= zcdh(ig)
    361       ENDDO
     363         ustar(ig)=sqrt(zcdv_true(ig))*sqrt(zu2)
     364      ENDDO
     365
    362366
    363367!     JL12 calculate the flux coefficients (tables multiplied elements by elements)
     
    719723
    720724      if(water)then
     725#ifndef MESOSCALE
    721726         call writediagfi(ngrid,'beta','Dryness coefficient',' ',2,dryness)
     727#endif
    722728         if (tracer) then
     729#ifndef MESOSCALE
    723730            call writediagfi(ngrid,'dqevap','evaporated water vapor specific concentration','s-1',3,pdqevap)
     731#else
     732            comm_LATENT_HF(:)=0.0
     733            comm_LATENT_HF(1:ngrid)=RLVTT*dqsdif_total(1:ngrid)/ptimestep
     734#endif
    724735         endif
    725736      endif
Note: See TracChangeset for help on using the changeset viewer.