Changeset 319 for trunk/LMDZ.MARS/libf


Ignore:
Timestamp:
Oct 14, 2011, 11:59:58 AM (13 years ago)
Author:
aslmd
Message:

LMDZ.MARS : minor changes to thermals [output L_mo + default settings]. transparent to users.

Location:
trunk/LMDZ.MARS/libf/phymars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/calltherm_interface.F90

    r284 r319  
    88     & pdu_th,pdv_th,pdt_th,pdq_th,lmax_th,zmax_th,pbl_dtke,hfmax,wmax)
    99
    10        USE ioipsl_getincom
     10       !USE ioipsl_getincom
    1111
    1212      implicit none
     
    107107
    108108            pq_therm(:,:,:)=0.
    109             qtransport_thermals=.true.
    110             call getin("qtransport_thermals",qtransport_thermals)
     109            qtransport_thermals=.true. !! default setting
     110            !call getin("qtransport_thermals",qtransport_thermals)
    111111            if(qtransport_thermals) then
    112112            if(tracer) then
     
    124124            buoyancyEst(:,:)=0.
    125125
    126        dtke_thermals=.false.
    127        call getin("dtke_thermals",dtke_thermals)
     126       dtke_thermals=.false. !! default setting
     127       !call getin("dtke_thermals",dtke_thermals)
    128128         if(dtke_thermals) then
    129129
  • trunk/LMDZ.MARS/libf/phymars/physiq.F

    r308 r319  
    327327      REAL zcdv(ngridmx), zcdh(ngridmx)
    328328      REAL Teta_out(ngridmx),u_out(ngridmx)  ! Interpolated teta and u at z_out
    329       REAL z_out                          ! height of interpolation between z0 and z1
     329      REAL z_out                          ! height of interpolation between z0 and z1 [meters]
    330330      REAL ustar(ngridmx),tstar(ngridmx)  ! friction velocity and friction potential temp
     331      REAL L_mo(ngridmx)
    331332      REAL zu2(ngridmx)
    332333c=======================================================================
     
    16581659
    16591660
    1660          z_out=0.
     1661         z_out=1. !0.
    16611662         if (calltherm .and. (z_out .gt. 0.)) then
    16621663         call surflayer_interpol(ngrid,nlayer,z0,g,zzlay,zu,zv,wmax_th
    1663      &              ,tsurf,zh,z_out,Teta_out,u_out,ustar,tstar)
     1664     &              ,tsurf,zh,z_out,Teta_out,u_out,ustar,tstar,L_mo)
    16641665
    16651666         zu2(:)=sqrt(zu(:,1)*zu(:,1)+zv(:,1)*zv(:,1))
     
    16801681     &              'friction potential temperature','K',
    16811682     &                         2,tstar)
     1683         call WRITEDIAGFI(ngrid,'L',
     1684     &              'Monin Obukhov length','m',
     1685     &                         2,L_mo)
    16821686         else
    16831687           if((.not. calltherm).and.(z_out .gt. 0.)) then
  • trunk/LMDZ.MARS/libf/phymars/surflayer_interpol.F

    r292 r319  
    11      SUBROUTINE surflayer_interpol(ngrid,nlay,pz0,
    2      & pg,pz,pu,pv,wmax,pts,ph,z_out,Teta_out,u_out,ustar,tstar)
     2     & pg,pz,pu,pv,wmax,pts,ph,z_out,Teta_out,u_out,ustar,tstar,L_mo)
    33      IMPLICIT NONE
    44!=======================================================================
     
    4545      REAL, INTENT(OUT) :: Teta_out(ngrid),u_out(ngrid)! interpolated fields at z_out : potential temperature and norm(uv)
    4646      REAL, INTENT(OUT) :: ustar(ngrid), tstar(ngrid) ! u* and teta*
     47      REAL, INTENT(OUT) :: L_mo(ngrid)                ! Monin-Obukhov length
    4748
    4849!   Local:
     
    8182
    8283      REAL zu2(ngrid)                  ! Large-scale wind at first layer
    83       REAL L_mo(ngrid)                ! Monin-Obukhov length
    8484!-----------------------------------------------------------------------
    8585!   couche de surface:
     
    331331! Usefull diagnostics for the interpolation routine :
    332332
    333 !         call WRITEDIAGFI(ngrid,'L',
    334 !     &              'Monin Obukhov length','m',
    335 !     &                         2,L_mo)
    336333!         call WRITEDIAGFI(ngrid,'z0T',
    337334!     &              'thermal roughness length','m',
Note: See TracChangeset for help on using the changeset viewer.