Ignore:
Timestamp:
Nov 7, 2024, 10:27:18 AM (2 weeks ago)
Author:
jbclement
Message:

PEM:
Modifications related to the launching script:

  • There is actually no launching difference between the 1D and 3D models. It is more about how and where you want to execute. So now, the user can choose between two launching modes with the parameter "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 supercomputer;
  • The execution command line in the job scripts that should be modified by the user according to the set-up is now given as an argument at the beginning to be more identifiable and adaptable;
  • Making the job scripts more robust to detect a successful end.

JBC

File:
1 edited

Legend:

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

    r3417 r3495  
    2222# Name of executable for reshaping PCM data with XIOS:
    2323exeReshape="reshape_XIOS_output_64x48x32_phymars_seq.e"
     24
     25# Argument for the PEM execution (for SLURM: "$SLURM_JOB_ID" | for PBD/TORQUE: "$PBS_JOBID" | "" when the script is not run as a job):
     26arg_pem="$SLURM_JOB_ID"
    2427########################################################################
    2528
     
    3942echo "Run PEM $iPEM is starting."
    4043cp run_PEM.def run.def
    41 ./$exePEM $SLURM_JOB_ID > out_runPEM${iPEM} 2>&1
    42 if [ ! -f "restartfi.nc" ] || ! (tail -n 1 out_runPEM${iPEM} | grep -iq "so far, so good!"); then # Check if it ended abnormally
     44eval "./$exePEM $arg_pem > out_runPEM${iPEM} 2>&1"
     45if [ ! -f "restartfi.nc" ] || ! (tail -n 100 out_runPEM${iPEM} | grep -iq "so far, so good!"); then # Check if it ended abnormally
    4346    echo "Error: the run PEM $iPEM crashed!"
    4447    exit 1
Note: See TracChangeset for help on using the changeset viewer.