Ignore:
Timestamp:
Dec 2, 2022, 7:59:07 PM (2 years ago)
Author:
jnaar
Message:

Changed units of sw_htrt and lw_htrt from W.m-2 to K.s-1 in writediagfi.
Created output diagfi var "surf_h2o_lh" which contains instantaneous latent heat flux from ground ice water condensation / sublimation in W.m-2
JN

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/vdifc_mod.F

    r2826 r2840  
    136136      REAL ztsrf(ngrid) ! temporary surface temperature in tsub
    137137      REAL zdtsrf(ngrid) ! surface temperature tendancy in tsub
     138      REAL surf_h2o_lh(ngrid) ! Surface h2o latent heat flux
     139      REAL zsurf_h2o_lh(ngrid) ! Tsub surface h2o latent heat flux
    138140
    139141c     For latent heat release from ground water ice sublimation   
     
    242244      pdtsrf(1:ngrid)=0
    243245      zdtsrf(1:ngrid)=0
     246      surf_h2o_lh(1:ngrid)=0
     247      zsurf_h2o_lh(1:ngrid)=0
    244248      pdqdif(1:ngrid,1:nlay,1:nq)=0
    245249      pdqsdif(1:ngrid,1:nq)=0
     
    959963     &                       zdqsdif(ig))*subtimestep
    960964
     965c             Monitoring instantaneous latent heat flux in W.m-2 :
     966              zsurf_h2o_lh(ig) = zsurf_h2o_lh(ig)+
     967     &                               (zdtsrf(ig)*pcapcal(ig))
     968     &                               *subtimestep
    961969
    962970c             We ensure that surface temperature can't rise above the solid domain if there
     
    975983c             (btw could also compute the post timestep temp and ice
    976984c             by simply adding the subtimestep trend instead of this)
     985            surf_h2o_lh(ig)= zsurf_h2o_lh(ig)/ptimestep
    977986            pdtsrf(ig)= (ztsrf(ig) -
    978987     &                     ptsrf(ig))/ptimestep
     
    10481057c --------- end of tracers  ----------------------------
    10491058
     1059         call WRITEDIAGFI(ngrid,"surf_h2o_lh",
     1060     &                          "Ground ice latent heat flux",
     1061     &                               "W.m-2",2,surf_h2o_lh(:))
    10501062
    10511063C       Diagnostic output for HDO
Note: See TracChangeset for help on using the changeset viewer.