From f24a9c4275766d0c69e01a0d0e1966d5cef36a7e Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Tue, 13 Jun 2023 16:13:59 +0100 Subject: [PATCH] Updated syntax to reflect cmd line arg change --- docs/source/hpc.rst | 2 +- toolboxes/Utilities/HPC/gprmax_omp_jobarray.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/hpc.rst b/docs/source/hpc.rst index 54ea0b30..2f30c020 100644 --- a/docs/source/hpc.rst +++ b/docs/source/hpc.rst @@ -50,6 +50,6 @@ Here is an example of a job script for running models, e.g. A-scans to make a B- :language: bash :linenos: -The ``-t`` tells Grid Engine that we are using a job array followed by a range of integers which will be the IDs for each individual task (model). Task IDs must start from 1, and the total number of tasks in the range should correspond to the number of models you want to run, i.e. the integer with the ``-n`` flag passed to gprMax. The ``-task`` flag is passed to gprMax to tell it we are using a job array, along with the specific number of the task (model) with the environment variable ``$SGE_TASK_ID``. +The ``-t`` tells Grid Engine that we are using a job array followed by a range of integers which will be the IDs for each individual task (model). Task IDs must start from 1, and the total number of tasks in the range should correspond to the number of models you want to run, i.e. the integer with the ``-n`` flag passed to gprMax. The ``-i`` flag is passed to gprMax along with the specific number of the task (model) with the environment variable ``$SGE_TASK_ID``. A job array means that exactly the same submit script is going to be run multiple times, the only difference between each run is the environment variable ``$SGE_TASK_ID``. \ No newline at end of file diff --git a/toolboxes/Utilities/HPC/gprmax_omp_jobarray.sh b/toolboxes/Utilities/HPC/gprmax_omp_jobarray.sh index 5e3d763e..a9a2ba21 100644 --- a/toolboxes/Utilities/HPC/gprmax_omp_jobarray.sh +++ b/toolboxes/Utilities/HPC/gprmax_omp_jobarray.sh @@ -28,4 +28,4 @@ export OMP_NUM_THREADS=16 ### Run gprMax with input file cd $HOME/gprMax -python -m gprMax mymodel.in -n 10 -task $SGE_TASK_ID +python -m gprMax mymodel.in -n 10 -i $SGE_TASK_ID