-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_fram.sh
50 lines (37 loc) · 1.17 KB
/
run_fram.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
##########################
# ROMS SLURM MPI job #
##########################
#SBATCH --job-name=Glomma_particles
# Set number of tasks or tasks per node (max 10 nodes on devel)
#SBATCH --ntasks-per-node=1
#SBATCH --nodes=1
#SBATCH -A nn9297k
# run time (max 7 days on normal, 30 minutes on devel, 2 hrs on short)
# d-hh:mm:ss
##SBATCH --time=1-00:00:00
##SBATCH --time=0-00:30:00
#SBATCH --time=0-00:30:00
# choose partition
##SBATCH --partition=normal
##SBATCH --qos=devel
##SBATCH --qos=short
#SBATCH --qos=devel
# memory per core and no. nodes (only specify on bigmem partition)
##SBATCH --mem-per-cpu=1000MB
# turn on all mail notification
#SBATCH --mail-user=trond.kristiansen@niva.no
#SBATCH --mail-type=ALL
# you may not place bash commands before the last SBATCH directive
# define and create a unique scratch directory
WORK_DIRECTORY=/cluster/projects/nn9297k/Glomma_particles
SCRATCH_DIRECTORY=${WORK_DIRECTORY}
SLURM_SUBMIT_DIR=${WORK_DIRECTORY}
mkdir -p ${SCRATCH_DIRECTORY}
cd ${SCRATCH_DIRECTORY}
source /home/${USER}/.bashrc
source activate opendrift
# we execute the job and time it
time mpirun python run_sedimentdrift.py
# happy end
exit 0