Ignore:
Timestamp:
Feb 11, 2025, 4:42:38 PM (8 days ago)
Author:
jbclement
Message:

Mars PCM:
Addition of 'zdqsdif_ssi_tot", the total flux with sub-surface water ice, in the "startfi.nc" file. Only used under paleoclimate flag.
JBC

Location:
trunk/LMDZ.MARS/libf/phymars
Files:
4 edited

Legend:

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

    r3582 r3619  
    1616    real,    allocatable, dimension(:,:) :: h2o_ice_depth         ! Thickness of the lag before H2O ice [m]
    1717    real,    allocatable, dimension(:,:) :: lag_co2_ice           ! Thickness of the lag before CO2 ice [m]
     18    real,    allocatable, dimension(:,:) :: zdqsdif_ssi_tot       ! Total flux of the interactions with SSI (kg/m^2/s^-1)
    1819    real,    allocatable, dimension(:,:) :: d_coef                ! Diffusion coefficent
    1920    logical                              :: lag_layer             ! Does lag layer is present?
     
    3435allocate(h2o_ice_depth(ngrid,nslope))
    3536allocate(lag_co2_ice(ngrid,nslope))
     37allocate(zdqsdif_ssi_tot(ngrid,nslope))
    3638allocate(d_coef(ngrid,nslope))
    3739
     
    4547if (allocated(d_coef)) deallocate(d_coef)
    4648if (allocated(h2o_ice_depth)) deallocate(h2o_ice_depth)
     49if (allocated(zdqsdif_ssi_tot)) deallocate(zdqsdif_ssi_tot)
    4750if (allocated(lag_co2_ice)) deallocate(lag_co2_ice)
    4851
  • trunk/LMDZ.MARS/libf/phymars/phyetat0_mod.F90

    r3393 r3619  
    3131use comsoil_h,           only: flux_geo
    3232use comslope_mod,        only: nslope, major_slope
    33 use paleoclimate_mod,    only: paleoclimate, h2o_ice_depth, lag_co2_ice, d_coef
     33use paleoclimate_mod,    only: paleoclimate, h2o_ice_depth, lag_co2_ice, d_coef, zdqsdif_ssi_tot
    3434use comcstfi_h,          only: pi
    3535use geometry_mod,        only: latitude
     
    845845     h2o_ice_depth(:,:) = -1.
    846846   endif
     847   
     848! Total flux with SSI
     849   call get_field("zdqsdif_ssi_tot",zdqsdif_ssi_tot,found,indextime)
     850   if (.not.found) then
     851     write(*,*) "phyetat0: Failed loading <zdqsdif_ssi_tot> : ", &
     852                          "<zdqsdif_ssi_tot> is set as -1 (no subsurface ice)"
     853     zdqsdif_ssi_tot(:,:) = 0.
     854   endif
    847855
    848856! Diffusion coeficent
     
    873881    h2o_ice_depth = -1.
    874882    lag_co2_ice = -1.
     883    zdqsdif_ssi_tot = 0.
    875884    d_coef = 4.e-4
    876885    perennial_co2ice = 0.
     
    880889   h2o_ice_depth = -1.
    881890   lag_co2_ice = -1.
     891   zdqsdif_ssi_tot = 0.
    882892   d_coef = 4.e-4
    883893   perennial_co2ice = 0.
  • trunk/LMDZ.MARS/libf/phymars/phyredem.F90

    r3509 r3619  
    2828  use time_phylmdz_mod, only: daysec
    2929  use comslope_mod, ONLY: nslope
    30   USE paleoclimate_mod, ONLY: paleoclimate, h2o_ice_depth, lag_co2_ice, d_coef
     30  USE paleoclimate_mod, ONLY: paleoclimate, h2o_ice_depth, lag_co2_ice, d_coef, zdqsdif_ssi_tot
    3131
    3232  implicit none
     
    193193    call put_field("h2o_ice_depth","Depth to the fisrt H2O ice",h2o_ice_depth)
    194194    call put_field("lag_co2_ice","Depth of the CO2 lags",lag_co2_ice)
     195    call put_field("zdqsdif_ssi_tot","Total flux with SSI",zdqsdif_ssi_tot)
    195196    call put_field("d_coef","Diffusion coefficent",d_coef)
    196197  endif
  • trunk/LMDZ.MARS/libf/phymars/vdifc_mod.F

    r3468 r3619  
    3434     &                      subslope_dist,major_slope,iflat
    3535      use microphys_h, only: To
    36       use paleoclimate_mod, only: d_coef,h2o_ice_depth,lag_layer
     36      use paleoclimate_mod, only: d_coef,h2o_ice_depth,lag_layer,
     37     &                            zdqsdif_ssi_tot
    3738      use comsoil_h, only: layer, mlayer,adsorption_soil
    3839      use vdif_cd_mod, only: vdif_cd
     
    243244      REAL zdqsdif_ssi_atm_tot(ngrid,nslope)   ! SSI - atmosphere flux (kg/m^2/s^-1) summed over all subtimestep
    244245      REAL zdqsdif_ssi_frost_tot(ngrid,nslope) ! SSI - frost flux (kg/m^2/s^-1) summed over all subtimestep
    245       REAL zdqsdif_ssi_tot(ngrid,nslope)       ! Total flux of the interactions with SSI kg/m^2/s^-1)
    246246     
    247247      REAL :: tol_frost = 2e-3 ! tolerence for frost thicnkess (kg/m^2) to avoid numerical noise effect
Note: See TracChangeset for help on using the changeset viewer.