Ignore:
Timestamp:
Dec 21, 2017, 11:29:56 PM (7 years ago)
Author:
aslmd
Message:

addition of the omega velocity in physiq_mod (awaiting improvements by JL)

File:
1 edited

Legend:

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

    r1875 r1877  
    236236      real zh(ngrid,nlayer)               ! Potential temperature (K).
    237237      real pw(ngrid,nlayer)               ! Vertical velocity (m/s). (NOTE : >0 WHEN DOWNWARDS !!)
     238      real omega(ngrid,nlayer)            ! omega velocity (Pa/s, >0 when downward)
    238239
    239240      integer l,ig,ierr,iq,nw,isoil
     
    757758                       (pplay(1:ngrid,l)*cell_area(1:ngrid))
    758759      enddo
     760      ! omega in Pa/s
     761      do l=1,nlayer-1
     762         omega(1:ngrid,l)=0.5*(flxw(1:ngrid,l)+flxw(1:ngrid,l+1))
     763      enddo
     764      omega(1:ngrid,nlayer)=0.5*flxw(1:ngrid,nlayer) ! since flxw(nlayer+1)=0
     765      do l=1,nlayer
     766         omega(1:ngrid,l)=g*omega(1:ngrid,l)/cell_area(1:ngrid)
     767      enddo
    759768
    760769      ! ----------------------------------------------------------------
     
    21722181      CALL send_xios_field("u",zu)
    21732182      CALL send_xios_field("v",zv)
     2183      CALL send_xios_field("omega",omega)
     2184
     2185      CALL send_xios_field("ISR",fluxtop_dn)
     2186      CALL send_xios_field("OLR",fluxtop_lw)
    21742187
    21752188      if (lastcall.and.is_omp_master) then
Note: See TracChangeset for help on using the changeset viewer.