-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_eikonal.sh
48 lines (35 loc) · 1.01 KB
/
run_eikonal.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
#!/bin/bash
#TO BE specified only in case of usage of a given queue (now commented)
##PBS -q reserved2
##PBS -q long
#PBS -q regular
#define the job array
##PBS -t 0-19
#defne the number of nodes (and cores)
#PBS -l nodes=1:ppn=20
#define the walltime
##PBS -l walltime=24:00:00
#PBS -l walltime=12:00:00
#define the error output file as JOBNAME.e[JOBID] || JOBNAME.o[JOBID]
#PBS -j oe
#send me an e-mail when job ends
#PBS -m abe
#PBS -M [email protected]
#Define the JOB name
##PBS -N 1e3_000-019
#IT HAS TO BE HERE
#PBS -T flush_cache
#PBS
#
# set up environment to import pre-compiled executables from AK.
#module load intel
#set the current directory as the working directory (where the job is submitted from)
#by default the job will start on the $HOME directory on the remote node
PBS_O_WORK=/scratch/apezzotta/eikonal/main
cd $PBS_O_WORK
module load openmpi/1.8.3/intel/14.0
gvals=()
for i in `seq -w 000 019`; do
gvals+=("0."$i"0")
done
mpirun -np ${#gvals[@]} eikonal2d_mpi $n $alpha $beta $eta ${gvals[@]}