-
Notifications
You must be signed in to change notification settings - Fork 5
/
jobscript
24 lines (22 loc) · 836 Bytes
/
jobscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash -l
#SBATCH --partition=standard
## request 1 node; each node offers up to 20 ranks (cpu cores)
#SBATCH --nodes=1
## runtime in hours; after 120h (5 days) our simulations will be stopped
## by the cluster; no problem is the simulation finishes earlier
#SBATCH --time=120:00:00
## name to find your job in the queue
#SBATCH --job-name=channel1D
## number of requested ranks/cores per node
## total cores = request nodes x ntasks-per-node = 1 x 4 = 4
#SBATCH --ntasks-per-node=4
## load software libraries
module load singularity/3.6.0rc2
module load mpi/openmpi/4.0.1/cuda_aware_gcc_6.3.0
## submit job
## e.g.) "sbatch jobscript channelFlow1D"
echo "Submitting case $1"
cd run/$1
image="../../../of2106.sif"
bashrc="/usr/lib/openfoam/openfoam2106/etc/bashrc"
singularity exec $image bash -c "source $bashrc && ./Allrun_1D"