Changeset 3495 for trunk/LMDZ.COMMON/libf/evolution/deftank/PEMrun.job
- Timestamp:
- Nov 7, 2024, 10:27:18 AM (2 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/deftank/PEMrun.job
r3417 r3495 22 22 # Name of executable for reshaping PCM data with XIOS: 23 23 exeReshape="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): 26 arg_pem="$SLURM_JOB_ID" 24 27 ######################################################################## 25 28 … … 39 42 echo "Run PEM $iPEM is starting." 40 43 cp 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 abnormally44 eval "./$exePEM $arg_pem > out_runPEM${iPEM} 2>&1" 45 if [ ! -f "restartfi.nc" ] || ! (tail -n 100 out_runPEM${iPEM} | grep -iq "so far, so good!"); then # Check if it ended abnormally 43 46 echo "Error: the run PEM $iPEM crashed!" 44 47 exit 1
Note: See TracChangeset
for help on using the changeset viewer.