Changeset 3274 for trunk/LMDZ.MARS/libf


Ignore:
Timestamp:
Mar 20, 2024, 9:50:21 AM (10 months ago)
Author:
llange
Message:

Mars PCM
Small update of soil properties (porosity) when running soilwater to simulate the evolution of massive water ice
LL

File:
1 edited

Legend:

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

    r3272 r3274  
    267267! variables for the 1D case
    268268real*8, parameter :: mmr_h2o = 0.6D-4     ! Water vapor mass mixing ratio (for initialization only)
    269 
    270269real*8 :: diff(ngrid, nsoil)              ! difference between total water content and ice + vapor content
    271270                                          ! (only used for output, inconstistent: should just be adswater)
    272 real :: var_flux_soil(ngrid, nsoil)
    273 
    274 real :: default_diffcoeff = 4e-4
    275 
     271real :: var_flux_soil(ngrid, nsoil)       ! Output of the flux between soil layers (kg/m^3/s)
     272real :: default_diffcoeff = 4e-4          ! Diffusion coefficient by default (no variations with Temperature and pressure (m/s^2)
     273real :: tol_massiveice = 50.              ! Tolerance to account for massive ice (kg/m^3)
    276274! Loop variables and counters
    277275integer :: ig, ik, i, j                   ! loop variables
     
    350348                        ! These properties are defined here in order to enable custom profiles
    351349                        if(ads_massive_ice) then
    352                            porosity_ice_free(ig, ik) = 0.9999
     350                              if(pqsoil(ig, ik, igcm_h2o_ice_soil).gt.tol_massiveice) then
     351                                    porosity_ice_free(ig, ik) = 0.999999
     352                              else
     353                                    porosity_ice_free(ig, ik) = porosity_reg
     354                              endif
    353355                        else
    354356                           porosity_ice_free(ig, ik) = porosity_reg
     
    521523endif  ! of "if firstcall_soil"
    522524
     525
     526
     527
     528! Update properties in case of the sublimation of massive ice
     529
     530if(ads_massive_ice) then
     531      do ig = 1, ngrid     
     532            do ik = 1, nsoil 
     533                  if(pqsoil(ig, ik, igcm_h2o_ice_soil).gt.tol_massiveice) then
     534                        porosity_ice_free(ig, ik) = 0.999999
     535                  else
     536                        porosity_ice_free(ig, ik) = porosity_reg
     537                  endif
     538            enddo
     539      enddo
     540endif     
    523541
    524542! Computation of new (new step) transport coefficients :
Note: See TracChangeset for help on using the changeset viewer.