Ignore:
Timestamp:
Mar 9, 2026, 10:29:53 AM (4 days ago)
Author:
jbclement
Message:

PEM:

  • Introduction of a configurable display/logging system with options 'out2term', 'out2log', 'verbosity_lvl'. All messages now use verbosity levels ('LVL_NFO', 'LVL_WRN', 'LVL_ERR' and 'LVL_DBG').
  • Code encapsulation improvements with systematic privacy/protection of module variables.
  • Addition of workflow safety checks for required executables, dependencies (e.g. 'ncdump'), input files and callphys keys.
  • Renaming of PEM starting and diagnostic files ("startevol.nc" into "startevo.nc", "diagevol.nc" into "diagevo.nc").

JBC

File:
1 edited

Legend:

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

    r4074 r4110  
    114114! DEPENDENCIES
    115115! ------------
    116 use utility, only: real2str
    117 use display, only: print_msg
     116use utility,  only: real2str
     117use display,  only: print_msg, LVL_NFO
     118use stoppage, only: stop_clean
    118119
    119120! DECLARATION
     
    129130threshold_h2oice_cap = threshold_h2oice_cap_in
    130131h2oice_huge_ini = h2oice_huge_ini_in
    131 call print_msg('threshold_h2oice_cap = '//real2str(threshold_h2oice_cap))
    132 call print_msg('h2oice_huge_ini      = '//real2str(h2oice_huge_ini))
     132call print_msg('threshold_h2oice_cap = '//real2str(threshold_h2oice_cap),LVL_NFO)
     133call print_msg('h2oice_huge_ini      = '//real2str(h2oice_huge_ini),LVL_NFO)
     134if (threshold_h2oice_cap < 0._dp) call stop_clean(__FILE__,__LINE__,'''threshold_h2oice_cap'' must be positive or null!',1)
     135if (h2oice_huge_ini < 0._dp) call stop_clean(__FILE__,__LINE__,'''h2oice_huge_ini'' must be positive or null!',1)
    133136
    134137END SUBROUTINE set_surf_ice_config
     
    223226use slopes,   only: subslope_dist, def_slope_mean
    224227use maths,    only: pi
    225 use display,  only: print_msg
     228use display,  only: print_msg, LVL_NFO
    226229
    227230! DECLARATION
     
    241244! CODE
    242245! ----
    243 call print_msg('> Building surface ice/frost for the PCM')
     246call print_msg('> Building surface ice/frost for the PCM',LVL_NFO)
    244247co2_ice4PCM(:,:) = co2_ice(:,:)
    245248h2o_ice4PCM(:,:) = 0._dp ! Because in the Mars PCM, only the variation of perennial H2O ice is monitored, not the absolute quantity
     
    282285use geometry,  only: ngrid, nslope
    283286use evolution, only: dt
    284 use display,   only: print_msg
     287use display,   only: print_msg, LVL_NFO
    285288
    286289! DECLARATION
     
    301304! ----
    302305! Evolution of CO2 ice for each physical point
    303 call print_msg('> Evolution of CO2 ice')
     306call print_msg('> Evolution of CO2 ice',LVL_NFO)
    304307
    305308co2_ice_old = co2_ice
     
    338341use evolution,     only: dt
    339342use stopping_crit, only: stopping_crit_h2o, stopFlags
    340 use display,       only: print_msg
     343use display,       only: print_msg, LVL_NFO
    341344
    342345! DECLARATION
     
    358361! CODE
    359362! ----
    360 call print_msg('> Evolution of H2O ice')
     363call print_msg('> Evolution of H2O ice',LVL_NFO)
    361364
    362365if (ngrid == 1) then ! In 1D
Note: See TracChangeset for help on using the changeset viewer.