Ignore:
Timestamp:
Mar 31, 2026, 3:38:07 PM (10 days ago)
Author:
jbclement
Message:

Mars PCM:
Giving standard explicit names to variables related to "paleoclimate" module + adding yearly average of flux exchanged with subsurface ice in XIOS output file intended for the PEM.
JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/phyetat0_mod.F90

    r4150 r4160  
    3737use comsoil_h,           only: flux_geo
    3838use comslope_mod,        only: nslope, major_slope
    39 use paleoclimate_mod,    only: paleoclimate, h2o_ice_depth, lag_co2_ice, d_coef, zdqsdif_ssi_tot
     39use paleoclimate_mod,    only: paleoclimate, h2oice_depth, co2ice_depth, coef_ssdif, zdqsdif_ssi_tot
    4040use comcstfi_h,          only: pi
    4141use geometry_mod,        only: latitude
     
    908908  if (startphy_file) then
    909909! Depth of H2O lag
    910    call get_field("h2o_ice_depth",h2o_ice_depth,found,indextime)
    911    if (.not.found) then
    912      write(*,*) "phyetat0: Failed loading <h2o_ice_depth> : ", &
    913                           "<h2o_ice_depth> is set as -1 (no subsurface ice)"
    914      h2o_ice_depth(:,:) = -1.
     910   call get_field("h2oice_depth",h2oice_depth,found,indextime)
     911   if (.not.found) then
     912     write(*,*) "phyetat0: Failed loading <h2oice_depth> : ", &
     913                          "<h2oice_depth> is set as -1 (no subsurface ice)"
     914     h2oice_depth(:,:) = -1.
    915915   endif
    916916   
    917917! Total flux with SSI
    918    call get_field("zdqsdif_ssi_tot",zdqsdif_ssi_tot,found,indextime)
    919    if (.not.found) then
    920      write(*,*) "phyetat0: Failed loading <zdqsdif_ssi_tot> : ", &
    921                           "<zdqsdif_ssi_tot> is set as -1 (no subsurface ice)"
     918   call get_field("flux_ssice",zdqsdif_ssi_tot,found,indextime)
     919   if (.not.found) then
     920     write(*,*) "phyetat0: Failed loading <flux_ssice> : ", &
     921                          "<flux_ssice> is set as -1 (no subsurface ice)"
    922922     zdqsdif_ssi_tot(:,:) = 0.
    923923   endif
    924924
    925925! Diffusion coeficent
    926    call get_field("d_coef",d_coef,found,indextime)
    927    if (.not.found) then
    928      write(*,*) "phyetat0: Failed loading <d_coef> : ", &
    929                           "<d_coef> is set as 4e-4 (defualt value)"
    930      d_coef(:,:) = 4e-4
     926   call get_field("coef_ssdif",coef_ssdif,found,indextime)
     927   if (.not.found) then
     928     write(*,*) "phyetat0: Failed loading <coef_ssdif> : ", &
     929                          "<coef_ssdif> is set as 4e-4 (default value)"
     930     coef_ssdif(:,:) = 4.e-4
    931931   endif
    932932
    933933! Depth of CO2 lag
    934    call get_field("lag_co2_ice",lag_co2_ice,found,indextime)
    935    if (.not.found) then
    936      write(*,*) "phyetat0: Failed loading <lag_co2_ice> : ", &
    937                           "<lag_co2_ice> is set as -1 (no subsurface ice)"
    938      lag_co2_ice(:,:) = -1.
     934   call get_field("co2ice_depth",co2ice_depth,found,indextime)
     935   if (.not.found) then
     936     write(*,*) "phyetat0: Failed loading <co2ice_depth> : ", &
     937                          "<co2ice_depth> is set as -1 (no subsurface ice)"
     938     co2ice_depth(:,:) = -1.
    939939   endif
    940940
     
    948948    endif ! not found
    949949  else ! no startphy_file
    950     h2o_ice_depth = -1.
    951     lag_co2_ice = -1.
    952     zdqsdif_ssi_tot = 0.
    953     d_coef = 4.e-4
    954     perennial_co2ice = 0.
     950    h2oice_depth(:,:) = -1.
     951    co2ice_depth(:,:) = -1.
     952    zdqsdif_ssi_tot(:,:) = 0.
     953    coef_ssdif(:,:) = 4.e-4
     954    perennial_co2ice(:,:) = 0.
    955955    if (abs(latitude(ngrid) - (-pi/2.)) < 1.e-5) perennial_co2ice(ngrid,:) = 10*1.6e3 ! 10m which is convert to kg/m^2
    956956  endif !startphy_file
    957957else
    958    h2o_ice_depth = -1.
    959    lag_co2_ice = -1.
    960    zdqsdif_ssi_tot = 0.
    961    d_coef = 4.e-4
    962    perennial_co2ice = 0.
     958   h2oice_depth(:,:) = -1.
     959   co2ice_depth(:,:) = -1.
     960   zdqsdif_ssi_tot(:,:) = 0.
     961   coef_ssdif(:,:) = 4.e-4
     962   perennial_co2ice(:,:) = 0.
    963963endif !paleoclimate
    964964
Note: See TracChangeset for help on using the changeset viewer.