Ignore:
Timestamp:
Apr 10, 2026, 7:17:55 PM (9 hours ago)
Author:
jbclement
Message:

PEM:

  • Rework layering-related logic, especially clarify interactions between surface and subsurface water tendencies and disable CO2 lag resistance (inconsistent without updating pressure and mass balance + PCM).
  • Prevent simultaneous activation of layering and ice flows.
  • Add warning when flux_geo /= 0 while soil is disabled.
  • Add new utility function "is_lvl_enabled" for displaying.
  • Replace deprecated 'minieps' with 'eps'/'tol'.

JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/soil_therm_inertia.F90

    r4135 r4180  
    1818! DEPENDENCIES
    1919! ------------
    20 use numerics, only: dp, di, k4, minieps
     20use numerics, only: dp, di, k4, eps
    2121
    2222! DECLARATION
     
    143143    regolith_inertia(:,islope) = inertiedat(:,1)
    144144    do ig = 1,ngrid
    145         if (abs(h2o_ice(ig,islope)) < minieps) regolith_inertia(ig,islope) = TI_regolith_avg
     145        if (abs(h2o_ice(ig,islope)) < eps) regolith_inertia(ig,islope) = TI_regolith_avg
    146146        if (reg_thprop_dependp) then
    147147            if (TI(ig,1,islope) < reg_inertie_thresold) then
     
    191191        if (icetable_depth(ig,islope) > -1.e-6_dp) then
    192192        ! 3.0 Case where it is perennial ice
    193             if (icetable_depth(ig,islope) < minieps) then
     193            if (icetable_depth(ig,islope) < eps) then
    194194                call get_ice_TI(.true.,1._dp,0._dp,ice_inertia)
    195195                do isoil = 1,nsoil
Note: See TracChangeset for help on using the changeset viewer.