Browse Source

Tweak c_scan script to facilitate refine

master
Jean-Sébastien 2 years ago
parent
commit
98df982419
1 changed files with 15 additions and 5 deletions
  1. 15
    5
      scripts/catalogue/c_scan_N_fixed_data.sh

+ 15
- 5
scripts/catalogue/c_scan_N_fixed_data.sh View File

7
 # The data can then be used to produce animated graphs (with c_int evolving),
7
 # The data can then be used to produce animated graphs (with c_int evolving),
8
 # see the `c_scan_N_fixed_dsfs[_plot]` scripts.
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
     exit 1
12
     exit 1
13
 fi
13
 fi
14
 
14
 
37
     exit 1
37
     exit 1
38
 fi
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
 timestart=$(date +%s)
50
 timestart=$(date +%s)
41
 
51
 
42
 whichDSF=$1
52
 whichDSF=$1
44
 target_sumrule=$3
54
 target_sumrule=$3
45
 N=$4
55
 N=$4
46
 nkmax=$5
56
 nkmax=$5
57
+Max_Secs=$6
58
+refine=$7
47
 
59
 
48
 correlator='rho-rho'
60
 correlator='rho-rho'
49
 if [[ $whichDSF == 'o' ]]; then
61
 if [[ $whichDSF == 'o' ]]; then
58
 
70
 
59
 iKmax=$(($nkmax * $N/8))
71
 iKmax=$(($nkmax * $N/8))
60
 
72
 
61
-Max_Secs=3600
62
-refine=0
63
 
73
 
64
 # List of interactions: fractional powers of 2
74
 # List of interactions: fractional powers of 2
65
 clist_raw=()
75
 clist_raw=()
87
 if [[ -d $dircheck ]]; then
97
 if [[ -d $dircheck ]]; then
88
     echo 'A c scan with these parameters already exists. Aborting.'
98
     echo 'A c scan with these parameters already exists. Aborting.'
89
     echo 'If you really want to run this command, please first delete directory:\n'$dircheck
99
     echo 'If you really want to run this command, please first delete directory:\n'$dircheck
90
-    exit
100
+    exit 1
91
 fi
101
 fi
92
 
102
 
93
 
103
 

Loading…
Cancel
Save