Ignore:
Timestamp:
Dec 11, 2025, 12:56:05 PM (8 days ago)
Author:
jbclement
Message:

PEM:
Massive structural refactor of the PEM codebase for improved readability, consistency and maintainability. The goal is to modernize, standardize and consolidate the code while removing legacy complexity. In detail, this change:

  • Performs large-scale cleanup removing unused code, obsolete routines, duplicated functionality and deprecated initialization logic;
  • Removes "*_mod" wrappers;
  • Replaces mixed naming conventions with clearer variable names, domain-based file/module names and purpose-based routine names;
  • Adds native reading/writing capabilities to the PEM removing the cumbersome dependency on Mars PCM subroutines;
  • Centralizes soil/ice/orbital/PEM configuration logic into dedicated modules;
  • Simplifies routines and updates calls/interfaces to match the new structure.

This refactor significantly clarifies the codebase and provides a cleaner foundation for forthcoming developments.
JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/deftank/run_PEM.def

    r3983 r3989  
    77
    88#---------- Output parameters ----------#
    9 # Frequency of outputs for the PEM? Default = 1
    10 ecritpem=1
     9# Output rate? Default = 1
     10output_rate=1
    1111
    1212#---------- Orbital parameters ----------#
    1313# Do you want to follow an orbital forcing read in "obl_ecc_lsp.asc"? Default = .false.
    14 # evol_orbit_pem=.false.
     14# evol_orbit=.false.
    1515
    16 # If evol_orbit_pem=.true., number of Earth years before present to start the PEM run. Default = 0
     16# If evol_orbit=.true., number of Earth years before present to start the PEM run. Default = 0
    1717# year_earth_bp_ini=0
    1818
     
    3030
    3131#---------- Stopping criteria parameters ----------#
    32 # If evol_orbit_pem=.false., maximal number of iterations if no stopping criterion is reached. Default=100000000
    33 # Max_iter_pem=100000000
     32# If evol_orbit=.false., maximal number of iterations if no stopping criterion is reached. Default=100000000.
     33# nyears_max=100000000
    3434
    3535# Acceptance rate of sublimating H2O ice surface change. Default = 0.2
    36 # h2o_ice_crit=0.2
     36# h2oice_crit=0.2
    3737
    3838# Acceptance rate of sublimating CO2 ice surface change. Default = 0.2
    39 # co2_ice_crit=0.2
     39# co2ice_crit=0.2
    4040
    4141# Acceptance rate of pressure surface change. Default = 0.15
    42 # ps_criterion = 0.15
     42# ps_crit = 0.15
    4343
    4444# Acceptance of change for obliquity. Default = 1.
     
    5353#---------- Subsurface parameters ----------#
    5454# Do you want to run with subsurface physical processes in the PEM? Default = .true.
    55 # soil_pem=.true.
     55# do_soil=.true.
    5656
    57 # Do you want to run with adsoprtion in the PEM? Default = .false.
    58 # adsorption_pem=.false.
     57# Do you want to run with adsorption/desorption in the PEM? Default = .false.
     58# sorption=.false.
    5959
    6060# Do you want to modify the soil thermal properties with the pressure? Default = .false.
     
    7777
    7878#---------- Ice management parameters ----------#
    79 # Amount of H2O ice to initialize the huge reservoir if the variable is not present in "startfi_PEM.nc". Default = 9200. kg.m-2 (= 10 m)
    80 # ini_huge_h2oice=9200.
     79# Amount of H2O ice to initialize the huge reservoir if the variable is not present in "startpem.nc". Default = 9200. kg.m-2 (= 10 m)
     80# h2oice_huge_ini=9200.
    8181
    8282# Threshold to consider the amount of H2O ice as an infinite reservoir. Default = 460. kg.m-2 (= 0.5 m)
    83 # inf_h2oice_threshold=460.
     83# h2oice_cap_threshold=460.
    8484
    8585# Do you want the H2O ice to flow along subslope inside a cell? Default = .true.
Note: See TracChangeset for help on using the changeset viewer.