-
Notifications
You must be signed in to change notification settings - Fork 0
/
submonc.pbs
36 lines (28 loc) · 1.04 KB
/
submonc.pbs
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
#!/bin/bash --login
#PBS -N MONC
#PBS -l select=33
#PBS -l walltime=01:00:00
#PBS -j oe
#PBS -q normal
##############################################################
#### THIS IS AN EXAMPLE SCRIPT TO DEMONSTRATE HOW TO ####
#### SUBMIT A CHECKPOINT JOB WITH THE CONTINUATION SCRIPT ####
#### Script assumes that there are directories called ####
#### monc_stdout , checkpoint_files and diagnostic_files ####
#### If these do not exist, MONC will fail ####
##############################################################
# Make sure any symbolic links are resolved to absolute path
export PBS_O_WORKDIR=$(readlink -f $PBS_O_WORKDIR)
# Change to the direcotry that the job was submitted from
cd $PBS_O_WORKDIR
export SUBMISSION_SCRIPT_NAME=submonc.pbs
export MONC_EXEC=./build/bin/monc_driver.exe
export TESTCASE=testcases/stable/Fog_Porson2011.mcf
export STDOUT_DIR=monc_stdout
export CP_DIR=checkpoint_files
export RUN_NAME=fog_dump_
export NPES=np
export MAX_CONTINUATION_RUNS=200
ulimit -c unlimited
. misc/continuation.sh
run_monc