-
Notifications
You must be signed in to change notification settings - Fork 1
/
makenf1
executable file
·50 lines (42 loc) · 1.11 KB
/
makenf1
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
if [ $HOSTNAME == "lovelace" ]; then
export LD_LIBRARY_PATH=/home/jcremona/lib
fi
d=$1
LEVEL=$2
NAP=${3:-100}
VERBOSE=1
OUTPUT_EIGS=1
# Make sure newforms directory exists!
if [[ $((d % 4)) -ne 3 ]] ; then
D=$(( 4*d ))
else
D=$d
fi
mkdir -p newforms/2.0.${D}.1
PARAMS="${d} ${VERBOSE} ${NAP} ${OUTPUT_EIGS} 1 ${LEVEL} 0.0"
PROG="./makenf_${d}_${LEVEL}"
ln -s makenf "${PROG}"
echo "Running " ${PROG} " with parameters " ${PARAMS}
if ( echo "${PARAMS}" | "${PROG}" > out/"${PROG}".out );
then
echo "${PROG} succeeded"
else
echo "******************** ${PROG} FAILED *******************************"
fi
/bin/rm "${PROG}"
# To use in parallel runs, one level per run (e.g.: d=59, norms from 1 to 100):
#
# parallel -j 5 --progress ./makenf1_hybrid 59 {1} ::: `./qidl_labels 59 1 100`
#
# or
#
# parallel -j 5 --progress ./makenf1_hybrid 59 {1} :::: missing_levels
#
# where the missing_levels file contains some level labels *one per line".
#
# or
#
# parallel -j 10 --progress ./makenf1_hybrid 103 {1} ::: `./qidl_labels 103 1 100 1`
#
# (replace '103' with d and '1 100' with the first and last level norm).