Ignore:
Timestamp:
Feb 16, 2026, 11:41:37 AM (3 weeks ago)
Author:
jbclement
Message:

PEM:
Modify the PEM semantics to standardize file/functions/variable names and avoid ambiguity: workflow = repetion of cycles; cycle = PCM phase + PEM phase; PCM phase = 2+ PCM runs of 1 year each, PEM phase = 1 PEM run of 'x' years.
JBC

File:
1 edited

Legend:

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

    r4065 r4072  
    1    *    .          .   +     .    *        .  +      .    .       .     
    2             +         _______  ________  ____    ____      *           + 
     1   *    .          .   +     .    *        .  +      .    .       .
     2            +         _______  ________  ____    ____      *           +
    33  +   .        *     |_   __ \|_   __  ||_   \  /   _|          .       *
    4            .     .     | |__) | | |_ \_|  |   \/   |  *        *      . 
    5         .              |  ___/  |  _| _   | |\  /| |      .        .     
    6  .  *          *      _| |_    _| |__/ | _| |_\/_| |_                  * 
    7              +       |_____|  |________||_____||_____|   +     .         
     4           .     .     | |__) | | |_ \_|  |   \/   |  *        *      .
     5        .              |  ___/  |  _| _   | |\  /| |      .        .
     6 .  *          *      _| |_    _| |__/ | _| |_\/_| |_                  *
     7             +       |_____|  |________||_____||_____|   +     .
    88   .      *          .   *       .   +       *          .        +      .
    99
    10    
     10
    1111This folder contains all the files needed to run and work with the Planetary Evolution Model (PEM).
    1212
     
    2424Options with example:
    2525    1) [local]     : root name of arch files, assuming that they have been set up for your configuration;
    26     2) [planet]    : mars to use the Mars planet physics package; 
     26    2) [planet]    : mars to use the Mars planet physics package;
    2727    3) [dimensions]: 64x48x54 to define the grid you want to use  (longitude x latitude x atmospheric layers).
    2828To run the PEM, you need a PCM working with XIOS and consistent options. To compile it, in "LMDZ.COMMON", do: ./makelmdz_fcm -arch [local] -p [planet] -parallel mpi_omp -io xios -d [dimensions] -j 8 gcm
     
    3131Usage:
    3232------
    33 To run a PEM simulation, do: ./launchPEM.sh [options]
     33To run a PEM simulation, do: ./pem_workflow.sh [options]
    3434Options:
    3535    1) None: to start a simulation from scratch;
    36     2) 're': to relaunch a simulation from a starting point (interactive prompt).
     36    2) 're': to resume a simulation from a starting point (interactive prompt).
    3737
    38 The Bash file ''launchPEM.sh'' is the master script to launch the PEM chained simulation. It checks if necessary files and required options for your simulation are ok.
     38The Bash file ''pem_workflow.sh'' is the master script to launch the PEM chained simulation. It checks if necessary files and required options for your simulation are ok.
    3939
    4040Requirements:
     
    4646      /!\ Do not forget to rename the PCM "run.def" into "run_PCM.def";
    4747    > the starting files you want to run the PCM: "startfi.nc", "start.nc"/"start1D.txt"/profiles;
    48     > the necessary PEM files: "launchPEM.sh", "lib_launchPEM.sh", "PCMrun.job", "PEMrun.job", "run_PEM.def" and "obl_ecc_lsp.asc";
     48    > the necessary PEM files: "pem_workflow.sh", "pem_workflow_lib.sh", "pcm_run.job", "pem_run.job", "run_PEM.def" and "obl_ecc_lsp.asc";
    4949    > the optional PEM files: "diagevol.def" to define the PEM variables to be ouputted and "startpem.nc" to set the initial state of the PEM.
    5050
     
    5252
    5353Before a simulation, you have to set up some parameters/options in:
    54     > "launchPEM.sh";
    55     > "PCMrun.job";
    56     > "PEMrun.job";
     54    > "pem_workflow.sh";
     55    > "pcm_run.job";
     56    > "pem_run.job";
    5757    > def files, especially for "run_PEM.def", "run_PCM.def", "callphys.def".
    58 In addition, the user has to provide a "startfi.nc" whose orbital parameters are consistent with the initial date set in "run_PEM.def". The script "inipem_orbit.sh" can do it automatically with "obl_ecc_lsp.asc".
     58In addition, the user has to provide a "startfi.nc" whose orbital parameters are consistent with the initial date set in "run_PEM.def". The script "ini_pem_orbit.sh" can do it automatically with "obl_ecc_lsp.asc".
    5959
    6060Outputs:
     
    6363    > the usual outputs of the PCM: "restartfi.nc", "restart.nc", "diagfi.nc", etc;
    6464    > the XIOS outputs of the PCM: "Xoutdaily4pem*.nc"/"Xoutyearly4pem*.nc";
    65     > the outputs of the chained simulation: "launchPEM.log", "launchPEM.info" and possibly "kill_launchPEM.sh";
     65    > the outputs of the chained simulation: "pem_workflow.log", "pem_workflow.sts" and possibly "kill_pem_workflow.sh";
    6666    > the usual outputs of the PEM: "restartfi.nc", "restart.nc"/"restart1D.txt" and "diagevol.nc".
    6767During the simulation, the PCM/PEM run files are renamed conveniently and stored in the sub-directories "logs" (log files), "starts" (starting files) and "diags" (diagnostic files).
    68 If you run a simulation by submitting jobs, the script "kill_launchPEM.sh" is automatically generated. It can be used to kill in the queue of the job scheduler the jobs related to your chained simulation.
     68If you run a simulation by submitting jobs, the script "kill_pem_workflow.sh" is automatically generated. It can be used to kill the jobs related to your chained simulation in the queue of the job scheduler.
    6969
    7070Deftank files:
    7171--------------
    72 # launchPEM.sh:
     72# pem_workflow.sh:
    7373  Bash script file to launch the chained simulation of PEM and PCM runs.
    7474  The user has to specify:
    7575      > n_mars_years, n_earth_years -> the number of Mars/Earth years to be simulated in total (> 0);
    76       > nPCM_ini -> the number of initial PCM years (>= 2);
    77       > nPCM -> the number of PCM years between each PEM run (>= 2, usually 2);
    78       > mode -> the launching mode (0 = "processing scripts"; any other values = "submitting jobs"). The former option is usually used to process the script on a local machine while the latter is used to submit jobs on a supercomputer with SLURM or PBS/TORQUE.
     76      > n_pcm_runs_ini -> the number of initial PCM years (>= 2);
     77      > n_pcm_runs -> the number of PCM years between each PEM run (>= 2, usually 2);
     78      > exec_mode -> the execution mode (0 = "processing scripts"; any other values = "submitting jobs"). The former option is usually used to process the script on a local machine while the latter is used to submit jobs on a supercomputer with SLURM or PBS/TORQUE.
    7979  The script can take an argument:
    8080      1) None: to start a simulation from scratch;
    81       2) 're': to relaunch a simulation from a starting point (interactive prompt).
     81      2) 're': to resume a simulation from a starting point (interactive prompt).
    8282
    83 # liblaunchPEM.sh:
    84   Library of bash functions used by the PEM launching script "launchPEM.sh".
     83# pem_workflow_lib.sh:
     84  Library of bash functions used by the PEM workflow script "pem_workflow.sh".
    8585
    86 # PCMrun.job:
     86# pcm_run.job:
    8787  Bash script file to submit a PCM job (with SLURM or PBS/TORQUE).
    8888  The user has to specify:
    89       > The headers correspond to the ADASTRA supercomputer and should be changed for other machines and job schedulers. In case of "processing scripts" launching mode, the headers are naturally omitted.
     89      > The headers correspond to the ADASTRA supercomputer and should be changed for other machines and job schedulers. In case of "processing scripts" execution mode, the headers are naturally omitted.
    9090      > The path to source the arch file should be adapted to the machine.
    9191      > The name of the PCM executable file should be adapted.
    9292      > The execution command should also be adapted according to the set-up.
    9393
    94 # PEMrun.job:
     94# pem_run.job:
    9595  Bash script file to submit PEM job (with SLURM or PBS/TORQUE).
    9696  The user has to specify:
    97       > The headers correspond to the ADASTRA supercomputer and should be changed for other machines and job schedulers. In case of "processing scripts" launching mode, the headers are naturally omitted.
     97      > The headers correspond to the ADASTRA supercomputer and should be changed for other machines and job schedulers. In case of "processing scripts" execution mode, the headers are naturally omitted.
    9898      > The path to source the arch file should be adapted to the machine.
    9999      > The name of the PEM executable file should be adapted.
     
    101101
    102102# run_PEM.def
    103   All the possible parameters to define a PEM run (read in "conf_pem.F90").
    104   It needs to be included in "run_PCM.def" with "INCLUDEDEF=run_PEM.def".
     103  All the possible parameters to define a PEM run (read in "config.F90").
     104  It needs to include in "run_PCM.def" with "INCLUDEDEF=run_PEM.def".
    105105
    106106# obl_ecc_lsp.asc [default], obl_ecc_lsp_pos.asc [future years]
     
    108108
    109109# modify_startfi_orbit.sh:
    110   Bash script file to modify orbital parameters in the file "startfi.nc". They should be consistent with Laskar's data in "obl_ecc_lsp.asc" at the same date if orbital parameters are meant to vary during the simulation. See also "inipem_orbit.sh".
     110  Bash script file to modify orbital parameters in the file "startfi.nc". They should be consistent with Laskar's data in "obl_ecc_lsp.asc" at the same date if orbital parameters are meant to vary during the simulation. See also "ini_pem_orbit.sh".
    111111
    112112# modify_startfi_var.sh:
    113113  Bash script file to modify the value of a variable in a file "startfi.nc".
    114114
    115 # inipem_orbit.sh:
     115# ini_pem_orbit.sh:
    116116  Bash script file to set the orbital parameters of a file "startfi.nc" from Laskar's data contained in "obl_ecc_lsp.asc" according to the initial date 'pem_ini_earth_date' defined in "run_PEM.def". See also "modify_startfi_orbit.sh".
    117117
     
    128128  Python script file to output the stratification data from the "startpem.nc" files.
    129129
    130 # visu_evol_layering.py:
     130# visu_layering_evol.py:
    131131  Python script file to output the stratification data over time from the "startpem.nc" files.
Note: See TracChangeset for help on using the changeset viewer.