Ignore:
Timestamp:
May 20, 2017, 9:41:16 AM (7 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes r2865:2885 into testing branch

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/libf/phylmd/ener_conserv.F90

    r2870 r2886  
    2424USE phys_local_var_mod, ONLY : d_t_eva,d_t_lsc,d_q_eva,d_q_lsc
    2525USE phys_output_var_mod, ONLY : bils_ec,bils_ech,bils_tke,bils_kinetic,bils_enthalp,bils_latent,bils_diss
     26USE add_phys_tend_mod, ONLY : fl_cor_ebil
    2627
    2728IMPLICIT none
     
    5960   DO k = 1, klev
    6061   DO i = 1, klon
    61       ZRCPD = RCPD*(1.0+RVTMP2*(pqn(i,k)+pqln(i,k)+pqsn(i,k)))
    62       d_t_ec(i,k)=0.5/ZRCPD &
    63  &      *(puo(i,k)**2+pvo(i,k)**2-pun(i,k)**2-pvn(i,k)**2)
    64       ENDDO
    65       ENDDO
     62     IF (fl_cor_ebil .GT. 0) then
     63       ZRCPD = RCPD*(1.0+RVTMP2*(pqn(i,k)+pqln(i,k)+pqsn(i,k)))
     64     ELSE
     65       ZRCPD = RCPD*(1.0+RVTMP2*pqn(i,k))
     66     ENDIF
     67     d_t_ec(i,k)=0.5/ZRCPD &
     68 &     *(puo(i,k)**2+pvo(i,k)**2-pun(i,k)**2-pvn(i,k)**2)
     69   ENDDO
     70   ENDDO
    6671!-jld ec_conser
    6772
Note: See TracChangeset for help on using the changeset viewer.