Changeset 2903 for LMDZ5


Ignore:
Timestamp:
Jun 6, 2017, 12:24:43 PM (7 years ago)
Author:
fhourdin
Message:

Correction de Jean-Yves sur la conservation oubliée au cours
d'une commission ultérieure de Frédéric.
Permettant de garantir une continuité sur l'ancienne physique.

File:
1 edited

Legend:

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

    r2895 r2903  
    2727USE phys_state_var_mod, ONLY : du_gwd_front,du_gwd_rando
    2828USE phys_output_var_mod, ONLY : bils_ec,bils_ech,bils_tke,bils_kinetic,bils_enthalp,bils_latent,bils_diss
     29USE add_phys_tend_mod, ONLY : fl_cor_ebil
     30
    2931
    3032IMPLICIT none
     
    6264   DO k = 1, klev
    6365   DO i = 1, klon
    64       ZRCPD = RCPD*(1.0+RVTMP2*(pqn(i,k)+pqln(i,k)+pqsn(i,k)))
    65       d_t_ec(i,k)=0.5/ZRCPD &
    66  &      *(puo(i,k)**2+pvo(i,k)**2-pun(i,k)**2-pvn(i,k)**2)
    67       ENDDO
    68       ENDDO
     66     IF (fl_cor_ebil .GT. 0) then
     67       ZRCPD = RCPD*(1.0+RVTMP2*(pqn(i,k)+pqln(i,k)+pqsn(i,k)))
     68     ELSE
     69       ZRCPD = RCPD*(1.0+RVTMP2*pqn(i,k))
     70     ENDIF
     71     d_t_ec(i,k)=0.5/ZRCPD &
     72 &     *(puo(i,k)**2+pvo(i,k)**2-pun(i,k)**2-pvn(i,k)**2)
     73   ENDDO
     74   ENDDO
    6975!-jld ec_conser
    7076
Note: See TracChangeset for help on using the changeset viewer.