Changeset 3251 for trunk/LMDZ.MARS/libf/phymars
- Timestamp:
- Mar 4, 2024, 11:51:38 AM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/dyn1d/init_testphys1d_mod.F90
r3250 r3251 20 20 use iostart, only: open_startphy, get_var, close_startphy 21 21 use physics_distribution_mod, only: init_physics_distribution 22 use comsoil_h, only: volcapa, nsoilmx, inertiesoil, inertiedat, layer, mlayer, flux_geo, tsoil, qsoil, & 22 use comsoil_h, only: volcapa, nsoilmx, inertiesoil, inertiedat, layer, mlayer, flux_geo, tsoil, & 23 adsorption_soil, qsoil, igcm_h2o_ice_soil, porosity_reg, & 23 24 ini_comsoil_h_slope_var, end_comsoil_h_slope_var 24 25 use comvert_mod, only: ap, bp, aps, bps, pa, preff, presnivs, pseudoalt, scaleheight … … 110 111 ! LL: Possibility to add subsurface ice 111 112 real :: ice_depth ! depth of the ice table, ice_depth < 0. means no ice 112 real :: inertieice = 2100.! ice thermal inertia113 real :: inertieice ! ice thermal inertia 113 114 integer :: iref 115 116 ! LL: Subsurface water ice 117 real :: rho_H2O_ice ! Density (kg/m^3) of water ice 114 118 115 119 !======================================================================= … … 154 158 dtemisice(1) = 2. ! time scale for snow metamorphism (north) 155 159 dtemisice(2) = 2. ! time scale for snow metamorphism (south) 160 161 ! Water ice properties 162 ! --------------------------------------- 163 inertieice = 2100. 164 rho_H2O_ice = 920. 156 165 157 166 ! Mesh surface (not a very usefull quantity in 1D) … … 654 663 endif 655 664 656 ! Initialize soil properties and temperature665 ! Initialize soil properties, temperature and content 657 666 ! ------------------------------------------ 658 667 volcapa = 1.e6 ! volumetric heat capacity 668 669 if (.not. therestartfi) qsoil = 0. 670 659 671 660 672 if (.not. therestartfi) then … … 675 687 inertiedat(1,1) = sqrt(layer(1)/((ice_depth/inertiedat(1,1)**2) + ((layer(1) - ice_depth)/inertieice**2))) 676 688 inertiedat(1,2:) = inertieice 689 if(adsorption_soil) then 690 ! add subsurface ice in qsoil if one runs with adsorption 691 qsoil(1,1,igcm_h2o_ice_soil,:) = (ice_depth-layer(2))/(layer(1) - layer(2))*porosity_reg*rho_H2O_ice 692 qsoil(1,2:,igcm_h2o_ice_soil,:) = porosity_reg*rho_H2O_ice 693 endif 677 694 else ! searching for the ice/regolith boundary: 678 695 do isoil = 1,nsoil … … 688 705 ! Finally, we compute the underlying ice: 689 706 inertiedat(1,iref + 1:) = inertieice 707 708 if(adsorption_soil) then 709 ! add subsurface ice in qsoil if one runs with adsorption 710 qsoil(1,:iref - 1,igcm_h2o_ice_soil,:) = 0. 711 qsoil(1,iref+1:,igcm_h2o_ice_soil,:) = porosity_reg*rho_H2O_ice 712 qsoil(1,iref,igcm_h2o_ice_soil,:) = (ice_depth-layer(iref+1))/(layer(iref) - layer(iref+1))*porosity_reg*rho_H2O_ice 713 endif 690 714 endif ! (ice_depth < layer(1)) 691 715 else ! ice_depth < 0 all is set to surface thermal inertia … … 706 730 flux_geo = flux_geo(1,1) 707 731 708 ! Initialize soil content709 ! -----------------------710 if (.not. therestartfi) qsoil = 0.711 732 712 733 ! Initialize traceurs
Note: See TracChangeset
for help on using the changeset viewer.
