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/PCMrun.job

    r3416 r3495  
    2323# Name of executable for the PCM:
    2424exePCM="gcm_64x48x32_phymars_para.e"
     25
     26# Execution command:
     27exe_cmd="srun --cpu-bind=threads --label -c${OMP_NUM_THREADS:=1}"
    2528########################################################################
    2629
     
    3235read i_myear n_myear convert_years iPCM iPEM nPCM nPCM_ini < info_PEM.txt
    3336cp run_PCM.def run.def
    34 srun --cpu-bind=threads --label -c${OMP_NUM_THREADS:=1} $exePCM > out_runPCM${iPCM} 2>&1
    35 if [ ! -f "restartfi.nc" ] || ! (tail -n 1 out_runPCM${iPCM} | grep -iq "everything is cool!"); then # Check if it ended abnormally
     37eval "$exe_cmd $exePCM > out_runPCM${iPCM} 2>&1"
     38if [ ! -f "restartfi.nc" ] || ! (tail -n 100 out_runPCM${iPCM} | grep -iq "everything is cool!"); then # Check if it ended abnormally
    3639    echo "Error: the run PCM $iPCM crashed!"
    3740    echo "Be careful: there may be dependent jobs remaining in the SLURM queue with status 'DependencyNeverSatisfied'! You can cancel them by executing the script \"kill_launchPEM.sh\"."
Note: See TracChangeset for help on using the changeset viewer.