Changeset 3274 for trunk/LMDZ.MARS
- Timestamp:
- Mar 20, 2024, 9:50:21 AM (8 months ago)
- Location:
- trunk/LMDZ.MARS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/changelog.txt
r3273 r3274 4576 4576 Small fixes in vdifc for the interaction between the subsurface and frost (the flux from the surface frost to the subsurface was oo large if one removes all the frost at the surface) 4577 4577 4578 == 20/03/2024 == LL 4579 Small update of soil properties (porosity) when running soilwater to simulate the evolution of massive water ice -
trunk/LMDZ.MARS/libf/phymars/soilwater.F90
r3272 r3274 267 267 ! variables for the 1D case 268 268 real*8, parameter :: mmr_h2o = 0.6D-4 ! Water vapor mass mixing ratio (for initialization only) 269 270 269 real*8 :: diff(ngrid, nsoil) ! difference between total water content and ice + vapor content 271 270 ! (only used for output, inconstistent: should just be adswater) 272 real :: var_flux_soil(ngrid, nsoil) 273 274 real :: default_diffcoeff = 4e-4 275 271 real :: var_flux_soil(ngrid, nsoil) ! Output of the flux between soil layers (kg/m^3/s) 272 real :: default_diffcoeff = 4e-4 ! Diffusion coefficient by default (no variations with Temperature and pressure (m/s^2) 273 real :: tol_massiveice = 50. ! Tolerance to account for massive ice (kg/m^3) 276 274 ! Loop variables and counters 277 275 integer :: ig, ik, i, j ! loop variables … … 350 348 ! These properties are defined here in order to enable custom profiles 351 349 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 353 355 else 354 356 porosity_ice_free(ig, ik) = porosity_reg … … 521 523 endif ! of "if firstcall_soil" 522 524 525 526 527 528 ! Update properties in case of the sublimation of massive ice 529 530 if(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 540 endif 523 541 524 542 ! Computation of new (new step) transport coefficients :
Note: See TracChangeset
for help on using the changeset viewer.