Ignore:
Timestamp:
Mar 31, 2026, 3:38:07 PM (12 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/dynphy_lonlat/phymars/newstart.F

    r4053 r4160  
    6060      use comslope_mod, ONLY: nslope,def_slope,def_slope_mean,
    6161     &             subslope_dist,end_comslope_h,ini_comslope_h
    62       use paleoclimate_mod, only: h2o_ice_depth, lag_co2_ice, d_coef,
    63      &             ini_paleoclimate_h, end_paleoclimate_h
     62      use paleoclimate_mod, only: h2oice_depth, co2ice_depth, coef_ssdif,
     63     &             ini_paleoclimate, end_paleoclimate
    6464      use subslope_mola_mod, ONLY: subslope_mola
    6565      use parse_args_mod, only: parse_args
     
    208208      real, allocatable, dimension(:,:,:) :: albedo_old_slope        ! Surface albedo in each solar band
    209209      real, allocatable, dimension(:,:)   :: flux_geo_old_slope
    210       real, allocatable, dimension(:,:)   :: h2o_ice_depth_old_slope
    211       real, allocatable, dimension(:,:)   :: lag_co2_ice_old_slope
    212       real, allocatable, dimension(:,:)   :: d_coef_old_slope
     210      real, allocatable, dimension(:,:)   :: h2oice_depth_old_slope
     211      real, allocatable, dimension(:,:)   :: co2ice_depth_old_slope
     212      real, allocatable, dimension(:,:)   :: coef_ssdif_old_slope
    213213      integer :: iflat, nslope_old, nslope_new
    214214
     
    18501850
    18511851! Paleoclimate related stuff
    1852         allocate(h2o_ice_depth_old_slope(ngridmx,nslope_old))
    1853         allocate(lag_co2_ice_old_slope(ngridmx,nslope_old))
    1854         allocate(d_coef_old_slope(ngridmx,nslope_old))
    1855         h2o_ice_depth_old_slope = h2o_ice_depth
    1856         lag_co2_ice_old_slope = lag_co2_ice
    1857         d_coef_old_slope = d_coef
    1858         call end_paleoclimate_h
    1859         call ini_paleoclimate_h(ngridmx,nslope_new)
     1852        allocate(h2oice_depth_old_slope(ngridmx,nslope_old))
     1853        allocate(co2ice_depth_old_slope(ngridmx,nslope_old))
     1854        allocate(coef_ssdif_old_slope(ngridmx,nslope_old))
     1855        h2oice_depth_old_slope = h2oice_depth
     1856        co2ice_depth_old_slope = co2ice_depth
     1857        coef_ssdif_old_slope = coef_ssdif
     1858        call end_paleoclimate
     1859        call ini_paleoclimate(ngridmx,nslope_new)
    18601860
    18611861! Update of the variables with the new "slopes" situation according to the old one
     
    18721872             inertiesoil(:,:,islope) = inertiesoil_old_slope(:,:,1)
    18731873             flux_geo(:,islope) = flux_geo_old_slope(:,1)
    1874              h2o_ice_depth(:,islope) = h2o_ice_depth_old_slope(:,1)
    1875              lag_co2_ice(:,islope) = lag_co2_ice_old_slope(:,1)
    1876              d_coef(:,islope) = d_coef_old_slope(:,1)
     1874             h2oice_depth(:,islope) = h2oice_depth_old_slope(:,1)
     1875             co2ice_depth(:,islope) = co2ice_depth_old_slope(:,1)
     1876             coef_ssdif(:,islope) = coef_ssdif_old_slope(:,1)
    18771877          enddo
    18781878        else
     
    18881888             inertiesoil(:,:,islope) = inertiesoil_old_slope(:,:,iflat)
    18891889             flux_geo(:,islope) = flux_geo_old_slope(:,iflat)
    1890              h2o_ice_depth(:,islope) = h2o_ice_depth_old_slope(:,iflat)
    1891              lag_co2_ice(:,islope) = lag_co2_ice_old_slope(:,iflat)
    1892              d_coef(:,islope) = d_coef_old_slope(:,iflat)
     1890             h2oice_depth(:,islope) = h2oice_depth_old_slope(:,iflat)
     1891             co2ice_depth(:,islope) = co2ice_depth_old_slope(:,iflat)
     1892             coef_ssdif(:,islope) = coef_ssdif_old_slope(:,iflat)
    18931893          enddo
    18941894        endif
     
    18981898        deallocate(perennial_co2_old_slope,tsoil_old_slope)
    18991899        deallocate(inertiesoil_old_slope,flux_geo_old_slope)
    1900         deallocate(albedo_old_slope,h2o_ice_depth_old_slope)
    1901         deallocate(lag_co2_ice_old_slope,d_coef_old_slope)
     1900        deallocate(albedo_old_slope,h2oice_depth_old_slope)
     1901        deallocate(co2ice_depth_old_slope,coef_ssdif_old_slope)
    19021902
    19031903        endif !nslope=nslope_new
Note: See TracChangeset for help on using the changeset viewer.