Ignore:
Timestamp:
Apr 10, 2026, 7:17:55 PM (6 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/display.F90

    r4170 r4180  
    1919use, intrinsic :: iso_fortran_env, only: stderr => error_unit
    2020use, intrinsic :: iso_fortran_env, only: stdin => input_unit
    21 use numerics,                      only: dp, di, li, k4, minieps
     21use numerics,                      only: dp, di, li, k4, eps
    2222
    2323! DECLARATION
     
    277277
    278278END SUBROUTINE print_msg
     279!=======================================================================
     280
     281!=======================================================================
     282FUNCTION is_lvl_enabled(lvl) RESULT(enabled)
     283!-----------------------------------------------------------------------
     284! NAME
     285!     is_lvl_enabled
     286!
     287! DESCRIPTION
     288!     Return true if a message at level 'lvl' should be displayed.
     289!
     290! AUTHORS & DATE
     291!     JB Clement, 04/2026
     292!
     293! NOTES
     294!
     295!-----------------------------------------------------------------------
     296
     297! DECLARATION
     298! -----------
     299implicit none
     300
     301! ARGUMENTS
     302! ---------
     303integer(di), intent(in) :: lvl
     304
     305! LOCAL VARIABLES
     306! ---------------
     307logical(k4) :: enabled
     308
     309! CODE
     310! ----
     311enabled = .false.
     312if (lvl <= verbosity_lvl) enabled = .true.
     313
     314END FUNCTION is_lvl_enabled
    279315!=======================================================================
    280316
     
    465501if (gottacatch_emall_()) then
    466502    call print_msg('',LVL_NFO)
    467     if (abs(n_yr_run - first_gen) < minieps) then
     503    if (abs(n_yr_run - first_gen) < eps) then
    468504        do i = 1,size(surprise)
    469505            call print_msg(trim(surprise(i)),LVL_NFO)
Note: See TracChangeset for help on using the changeset viewer.