-
Notifications
You must be signed in to change notification settings - Fork 1
/
makenf1_hybrid
executable file
·50 lines (44 loc) · 1.26 KB
/
makenf1_hybrid
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
d=$1
LEVEL=$2
NAP=${3:-100}
VERBOSE=0
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_long_${d}_${LEVEL}"
# ln -s makenf_long "${PROG}"
# echo "Running " ${PROG} " with parameters " ${PARAMS}
# if ( echo "${PARAMS}" | "${PROG}" > out/"${PROG}".out );
# then
# echo "${PROG} using long ints succeeded"
# /bin/rm "${PROG}"
# else
# echo "******************** ${PROG} using long ints FAILED, rerunning with ZZ *******************************"
# /bin/rm "${PROG}"
PROG="./makenf_ZZ_${d}_${LEVEL}"
ln -s makenf_ZZ "${PROG}"
echo "${PARAMS}" | "${PROG}" > out/"${PROG}".out
/bin/rm "${PROG}"
# fi
# 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).