Changeset 2850 for LMDZ5/trunk


Ignore:
Timestamp:
Apr 13, 2017, 7:38:40 PM (8 years ago)
Author:
jyg
Message:

ener_conserv with q_l and q_s arguments

File:
1 edited

Legend:

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

    r2816 r2850  
    11subroutine ener_conserv(klon,klev,pdtphys, &
    2  &    puo,pvo,pto,pqo,pun,pvn,ptn,pqn,dtke,masse,exner,d_t_ec)
     2 &                      puo,pvo,pto,pqo,pql0,pqs0, &
     3 &                      pun,pvn,ptn,pqn,pqln,pqsn,dtke,masse,exner,d_t_ec)
    34
    45!=============================================================
     
    1920
    2021! From module
    21 USE phys_local_var_mod, ONLY : d_u_vdf,d_v_vdf,d_t_vdf,d_u_ajs,d_v_ajs,d_t_ajs,d_u_con,d_v_con,d_t_con,d_t_diss
     22USE phys_local_var_mod, ONLY : d_u_vdf,d_v_vdf,d_t_vdf,d_u_ajs,d_v_ajs,d_t_ajs, &
     23 &                             d_u_con,d_v_con,d_t_con,d_t_diss
    2224USE phys_local_var_mod, ONLY : d_t_eva,d_t_lsc,d_q_eva,d_q_lsc
    2325USE phys_output_var_mod, ONLY : bils_ec,bils_ech,bils_tke,bils_kinetic,bils_enthalp,bils_latent,bils_diss
     
    3234INTEGER, INTENT(IN) :: klon,klev
    3335REAL, INTENT(IN) :: pdtphys
    34 REAL, DIMENSION(klon,klev),INTENT(IN) :: puo,pvo,pto,pqo
    35 REAL, DIMENSION(klon,klev),INTENT(IN) :: pun,pvn,ptn,pqn
    36 REAL, DIMENSION(klon,klev),INTENT(IN) :: masse,exner
    37 REAL, DIMENSION(klon,klev+1),INTENT(IN) :: dtke
    38 REAL, DIMENSION(klon,klev),INTENT(OUT) :: d_t_ec
    39       integer k,i
     36REAL, DIMENSION(klon,klev), INTENT(IN)      :: puo,pvo,pto,pqo,pql0,pqs0
     37REAL, DIMENSION(klon,klev), INTENT(IN)      :: pun,pvn,ptn,pqn,pqln,pqsn
     38REAL, DIMENSION(klon,klev), INTENT(IN)      :: masse,exner
     39REAL, DIMENSION(klon,klev+1), INTENT(IN)    :: dtke
     40!
     41REAL, DIMENSION(klon,klev), INTENT(OUT)     :: d_t_ec
    4042
    4143! Local
     44      integer k,i
    4245REAL, DIMENSION(klon,klev+1) :: fluxu,fluxv,fluxt
    4346REAL, DIMENSION(klon,klev+1) :: dddu,dddv,dddt
     
    5659   DO k = 1, klev
    5760   DO i = 1, klon
    58       ZRCPD = RCPD*(1.0+RVTMP2*pqn(i,k))
     61      ZRCPD = RCPD*(1.0+RVTMP2*(pqn(i,k)+pqln(i,k)+pqsn(i,k)))
    5962      d_t_ec(i,k)=0.5/ZRCPD &
    6063 &      *(puo(i,k)**2+pvo(i,k)**2-pun(i,k)**2-pvn(i,k)**2)
Note: See TracChangeset for help on using the changeset viewer.