Ignore:
Timestamp:
Mar 9, 2026, 10:29:53 AM (5 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/deftank/pem_run.job

    r4091 r4110  
    3030ulimit -s unlimited
    3131
     32# Checking the executable
     33if [ ! -f $pem_exe ]; then
     34    echo "Error: required file \"$pem_exe\" not found!"
     35    exit 1
     36fi
     37
    3238# Running the PEM
    3339read n_yr_sim ntot_yr_sim r_plnt2earth_yr i_pcm_run i_pem_run n_pcm_runs n_pcm_runs_ini < pem_workflow.sts
     
    4248# Copy data files and prepare the next run
    4349mv run.log logs/run_pem${i_pem_run}.log
    44 if [ -f "diagevol.nc" ]; then
    45     mv diagevol.nc diags/diagevol${i_pem_run}.nc
     50if [ -f "diagevo.nc" ]; then
     51    mv diagevo.nc diags/diagevo${i_pem_run}.nc
    4652fi
    47 if [ -f "diagevol_soil.nc" ]; then
    48     mv diagevol_soil.nc diags/diagevol_soil${i_pem_run}.nc
     53if [ -f "diagevo_soil.nc" ]; then
     54    mv diagevo_soil.nc diags/diagevo_soil${i_pem_run}.nc
    4955fi
    50 cp restartevol.nc starts/restartevol${i_pem_run}.nc
    51 mv restartevol.nc startevol.nc
     56cp restartevo.nc starts/restartevo${i_pem_run}.nc
     57mv restartevo.nc startevo.nc
    5258cp restartfi.nc starts/restartfi_postpem${i_pem_run}.nc
    5359mv restartfi.nc startfi.nc
Note: See TracChangeset for help on using the changeset viewer.