Changeset 2850 for LMDZ5/trunk
- Timestamp:
- Apr 13, 2017, 7:38:40 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/ener_conserv.F90
r2816 r2850 1 1 subroutine 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) 3 4 4 5 !============================================================= … … 19 20 20 21 ! 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 22 USE 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 22 24 USE phys_local_var_mod, ONLY : d_t_eva,d_t_lsc,d_q_eva,d_q_lsc 23 25 USE phys_output_var_mod, ONLY : bils_ec,bils_ech,bils_tke,bils_kinetic,bils_enthalp,bils_latent,bils_diss … … 32 34 INTEGER, INTENT(IN) :: klon,klev 33 35 REAL, INTENT(IN) :: pdtphys 34 REAL, DIMENSION(klon,klev), INTENT(IN) :: puo,pvo,pto,pqo35 REAL, DIMENSION(klon,klev), INTENT(IN) :: pun,pvn,ptn,pqn36 REAL, DIMENSION(klon,klev), INTENT(IN):: masse,exner37 REAL, DIMENSION(klon,klev+1), INTENT(IN):: dtke38 REAL, DIMENSION(klon,klev),INTENT(OUT) :: d_t_ec 39 integer k,i 36 REAL, DIMENSION(klon,klev), INTENT(IN) :: puo,pvo,pto,pqo,pql0,pqs0 37 REAL, DIMENSION(klon,klev), INTENT(IN) :: pun,pvn,ptn,pqn,pqln,pqsn 38 REAL, DIMENSION(klon,klev), INTENT(IN) :: masse,exner 39 REAL, DIMENSION(klon,klev+1), INTENT(IN) :: dtke 40 ! 41 REAL, DIMENSION(klon,klev), INTENT(OUT) :: d_t_ec 40 42 41 43 ! Local 44 integer k,i 42 45 REAL, DIMENSION(klon,klev+1) :: fluxu,fluxv,fluxt 43 46 REAL, DIMENSION(klon,klev+1) :: dddu,dddv,dddt … … 56 59 DO k = 1, klev 57 60 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))) 59 62 d_t_ec(i,k)=0.5/ZRCPD & 60 63 & *(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.