|
@@ -7,8 +7,8 @@
|
7
|
7
|
# The data can then be used to produce animated graphs (with c_int evolving),
|
8
|
8
|
# see the `c_scan_N_fixed_dsfs[_plot]` scripts.
|
9
|
9
|
|
10
|
|
-if [[ $# -ne 5 ]]; then
|
11
|
|
- echo "Arguments needed: whichDSF, kBT, target_sumrule, N, nkmax (max momentum in units of kF/4)."
|
|
10
|
+if [[ $# -ne 7 ]]; then
|
|
11
|
+ echo "Arguments needed: whichDSF, kBT, target_sumrule, N, nkmax (max momentum in units of kF/4), Max_Secs (per c), refine."
|
12
|
12
|
exit 1
|
13
|
13
|
fi
|
14
|
14
|
|
|
@@ -37,6 +37,16 @@ if [[ $5 -lt 0 ]]; then
|
37
|
37
|
exit 1
|
38
|
38
|
fi
|
39
|
39
|
|
|
40
|
+if [[ $6 -lt 0 ]]; then
|
|
41
|
+ echo "Max_Secs must be > 0."
|
|
42
|
+ exit 1
|
|
43
|
+fi
|
|
44
|
+
|
|
45
|
+if [[ $7 != 0 && $7 != 1 ]]; then
|
|
46
|
+ echo "refine must be 0 (false) or 1 (true)."
|
|
47
|
+ exit 1
|
|
48
|
+fi
|
|
49
|
+
|
40
|
50
|
timestart=$(date +%s)
|
41
|
51
|
|
42
|
52
|
whichDSF=$1
|
|
@@ -44,6 +54,8 @@ kBT=$2
|
44
|
54
|
target_sumrule=$3
|
45
|
55
|
N=$4
|
46
|
56
|
nkmax=$5
|
|
57
|
+Max_Secs=$6
|
|
58
|
+refine=$7
|
47
|
59
|
|
48
|
60
|
correlator='rho-rho'
|
49
|
61
|
if [[ $whichDSF == 'o' ]]; then
|
|
@@ -58,8 +70,6 @@ touch $logfile
|
58
|
70
|
|
59
|
71
|
iKmax=$(($nkmax * $N/8))
|
60
|
72
|
|
61
|
|
-Max_Secs=3600
|
62
|
|
-refine=0
|
63
|
73
|
|
64
|
74
|
# List of interactions: fractional powers of 2
|
65
|
75
|
clist_raw=()
|
|
@@ -87,7 +97,7 @@ dircheck='Lieb-Liniger/'$correlator'/T_'$kBT'/c_scan_N_fixed/k_0_to_'${(l:2::0:)
|
87
|
97
|
if [[ -d $dircheck ]]; then
|
88
|
98
|
echo 'A c scan with these parameters already exists. Aborting.'
|
89
|
99
|
echo 'If you really want to run this command, please first delete directory:\n'$dircheck
|
90
|
|
- exit
|
|
100
|
+ exit 1
|
91
|
101
|
fi
|
92
|
102
|
|
93
|
103
|
|