Ignore:
Timestamp:
Feb 5, 2026, 4:11:56 PM (2 weeks ago)
Author:
evignon
Message:

update of mesh-averaged TKE after tend_to_tke. This only impact the writting of restartphy and ener_conserv

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/lmdz_call_gwd.f90

    r6063 r6068  
    2020!===================================================================
    2121
    22    SUBROUTINE call_gwd(klon, klev, nbsrf, is_ter, is_lic, abortphy, flag_inhib_tend, itap, JD_cur, JD_ref, JH_cur, &
     22   SUBROUTINE call_gwd(klon, klev, nbsrf, is_ter, is_lic, is_ave, abortphy, flag_inhib_tend, itap, JD_cur, JD_ref, JH_cur, &
    2323                       pctsrf, is_sequential, phys_tstep, cell_area, longitude_deg, latitude_deg, pphis, &
    2424                       zstd, zpic, zmea, zval, zsig, zgam, zthe, pplay, paprs, presnivs, rain_fall, snow_fall, &
     
    6161      REAL, INTENT(IN)     :: JD_ref ! start day of the run
    6262      REAL, INTENT(IN)     :: JH_cur ! time of the day in seconds
    63       INTEGER, INTENT(IN)  :: is_ter, is_lic ! indices for land and landice subsurfaces
     63      INTEGER, INTENT(IN)  :: is_ter, is_lic, is_ave ! indices for land and landice subsurfaces and mesh-averaged
    6464      LOGICAL, INTENT(IN)  :: is_sequential ! sequential or parallel model
    6565      REAL, INTENT(IN)  :: phys_tstep ! time step [s]
     
    488488         forall (k=1:klev) exner(:, k) = (pplay(:, k)/paprs(:, 1))**rkappa
    489489
    490          CALL tend_to_tke(phys_tstep, klon, klev, nbsrf, paprs, exner, t_seri, u_seri, v_seri, dtadd, duadd, dvadd, pctsrf, tke)
     490         CALL tend_to_tke(phys_tstep, klon, klev, nbsrf, is_ave, paprs, exner, t_seri, u_seri, v_seri, dtadd, duadd, dvadd, pctsrf, tke)
    491491
    492492         ! Prevent pbl_tke_w from becoming negative
Note: See TracChangeset for help on using the changeset viewer.