sbatch script format - jpmattern/ROMSEnsemble.jl GitHub Wiki
When starting ROMSEnsemble.jl with Slurm's sbatch command, a special script is required that should contain the two environment variables ROMS_EXECUTABLE
and ROMS_INFILE
. These will be replaced with the appropriate ROMS executable and ROMS main ("ocean") input file, respectively.
A very simple sbatch script could look like this:
#!/bin/bash
# sbatch options can be added here
mpirun ${ROMS_EXECUTABLE} ${ROMS_INFILE}
Here, the values for the variables ROMS_EXECUTABLE
and ROMS_INFILE
will be passed on to sbatch using the --export
argument. It is recommended to use a working sbatch script and replace the ROMS executable with ${ROMS_EXECUTABLE}
and the input file with ${ROMS_INFILE}
.