-
Notifications
You must be signed in to change notification settings - Fork 0
/
Run2ptCorr.csh
executable file
·66 lines (53 loc) · 1.31 KB
/
Run2ptCorr.csh
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#! /bin/tcsh
#SBATCH -p batch
#SBATCH -n 16
#SBATCH --time=5:00:00
#SBATCH --mem=55GB
module load intel/2015c
module load OpenMPI/1.8.8-iccifort-2015.3.187
module load CUDA/7.0.28
set curdir = /home/a1193348/Scripts/FSpython/
cd ${curdir}
set gencfeff = /home/a1193348/code/gencf/bin/
set exe = twopoint.x
# If variable icfg is not set, then exit
if (! $?icfg) then
echo "Error: icfg variable not set."
exit 1
endif
if (! $?ism) then
echo "ism variable not set."
exit 1
endif
if (! $?jobid) then
echo "jobid variable not set."
exit 1
endif
if (! $?fcfg) then
echo "fcfg variable not set, setting to icfg"
set fcfg = ${icfg}
endif
if (! $?mach) then
echo "mach variable not set."
exit 1
endif
set reportfolder = /data/cssm/jdragos/reports/${mach}/
set reportfile = ${reportfolder}${jobid}.out
mkdir -p ${reportfile}
rm ${reportfile} -rf
echo "cfg = ${icfg}, ism = ${ism}, mpirun 2 point Corr"
echo 'starting '`date`
mpirun -np 16 ${gencfeff}${exe} <<EOF > $reportfile
${curdir}${jobid}
EOF
# If previous exec terminated with error, then exit
if ($? != 0) then
echo "Error with: ${jobid}"
echo ""
cat <<EOF >> ${curdir}errlist.2ptcorr
${jobid}
EOF
exit 1
endif
echo 'finished '`date`
python ${curdir}ReSubmit.py $icfg $fcfg $gfos 'twoptcorr' $ism