Browse Source

Polish initial version of scripts

master
Jean-Sébastien 2 years ago
parent
commit
4f45ab3ee0

+ 14
- 2
scripts/build_LiebLin_c_scan_k_fixed.sh View File

@@ -4,6 +4,12 @@
4 4
 # computes the required DSF (up to required sumrule)
5 5
 # over a range of values of c_int.
6 6
 
7
+# This script cannot be restarted, it must be run as a one-off towards successful completion.
8
+
9
+# The data can then be used to produce animated graphs (with c_int evolving),
10
+# see the `build_LiebLin_c_scan_k_fixed_dsfs[_plot]` scripts, or
11
+# (better) the shortcuts `build_LiebLin_c_scan_k_fixed_set[_plots]`.
12
+
7 13
 if [[ $# -ne 5 ]]; then
8 14
     echo "Arguments needed: whichDSF, kBT, target_sumrule, N, nk (momentum in units of kF/4)."
9 15
     exit 1
@@ -48,6 +54,10 @@ elif [[ $whichDSF == 'g' ]]; then
48 54
     correlator='psi-psidag'
49 55
 fi
50 56
 
57
+mkdir -p logs
58
+logfile='logs/run_c_scan_k_fixed_'$whichDSF'_kBT_'$kBT'_sr_'$target_sumrule'_N_'$N'_nk_'$nk'_'$(date '+%Y-%m-%d-%Hh%M')'.log'
59
+touch $logfile
60
+
51 61
 iK=$(($nk * $N/8))
52 62
 
53 63
 Max_Secs=3600
@@ -77,11 +87,13 @@ basedir="$(pwd)"
77 87
 
78 88
 for c in $clist
79 89
 do
80
-    echo '** Starting run for c =' $c', N = '$N
90
+    echo '** Starting run for c =' $c', N = '$N', k = '$nk'kF/4' | tee -a $logfile
81 91
     dir='Lieb-Liniger/'$correlator'/T_'$kBT'/c_scan/k_fixed/k_'${(l:2::0:)nk}'kFo4/sr_'$target_sumrule'/store/data/N_'$N'/c_'$c
82 92
     mkdir -p $dir
83 93
     cd $dir
84 94
     LiebLin_DSF $whichDSF $c $N $N $iK $iK $kBT $Max_Secs $target_sumrule $refine
85 95
     cd $basedir
86
-    echo ' Successfully computed DSFs for c =' $c', N = '$N'.\n'
96
+    echo ' Successfully computed DSFs for c =' $c', N = '$N', k = '$nk'kF/4.\n' | tee -a $logfile
87 97
 done
98
+
99
+echo '\n\n*** Successfully completed build_LiebLin_c_scan_k_fixed on '$(date '+%Y-%m-%d-%Hh%M') | tee -a $logfile

+ 1
- 1
scripts/build_LiebLin_c_scan_k_fixed_set.sh View File

@@ -1,6 +1,6 @@
1 1
 #! /bin/zsh
2 2
 
3
-# Builds the set of c_scans for nk = 1 up to nkmax.
3
+# Runs `build_LiebLin_c_scan_k_fixed` for nk = 1 up to nkmax.
4 4
 
5 5
 if [[ $# -ne 5 ]]; then
6 6
     echo "Arguments needed: whichDSF, kBT, target_sumrule, N, nkmax (max momentum in units of kF/4)."

+ 1
- 1
scripts/build_LiebLin_c_scan_k_fixed_set_plots.sh View File

@@ -1,6 +1,6 @@
1 1
 #! /bin/zsh
2 2
 
3
-# Builds the set of plots for a `build_LiebLin_c_scan_k_fixed_set` run.
3
+# Runs `build_LiebLin_c_scan_k_fixed_dsfs` and `_plots` for nk = 1 up to nkmax.
4 4
 
5 5
 if [[ $# -ne 6 ]]; then
6 6
     echo "Arguments needed: whichDSF, kBT, target_sumrule, N, nkmax (max momentum in units of kF/4), width."

+ 11
- 2
scripts/build_LiebLin_c_scan_k_range.sh View File

@@ -4,6 +4,9 @@
4 4
 # computes the required DSF (up to required sumrule)
5 5
 # over a range of values of c_int.
6 6
 
7
+# The data can then be used to produce animated graphs (with c_int evolving),
8
+# see the `build_LiebLin_c_scan_k_range_dsfs[_plot]` scripts.
9
+
7 10
 if [[ $# -ne 5 ]]; then
8 11
     echo "Arguments needed: whichDSF, kBT, target_sumrule, N, nkmax (max momentum in units of kF/4)."
9 12
     exit 1
@@ -48,6 +51,10 @@ elif [[ $whichDSF == 'g' ]]; then
48 51
     correlator='psi-psidag'
49 52
 fi
50 53
 
54
+mkdir -p logs
55
+logfile='logs/run_c_scan_k_range_'$whichDSF'_kBT_'$kBT'_sr_'$target_sumrule'_N_'$N'_nkmax_'$nkmax'_'$(date '+%Y-%m-%d-%Hh%M')'.log'
56
+touch $logfile
57
+
51 58
 iKmax=$(($nkmax * $N/8))
52 59
 
53 60
 Max_Secs=3600
@@ -77,11 +84,13 @@ basedir="$(pwd)"
77 84
 
78 85
 for c in $clist
79 86
 do
80
-    echo '** Starting run for c =' $c', N = '$N
87
+    echo '** Starting run for c =' $c', N = '$N | tee -a $logfile
81 88
     dir='Lieb-Liniger/'$correlator'/T_'$kBT'/c_scan/k_range/k_0_to_'${(l:2::0:)nkmax}'kFo4/sr_'$target_sumrule'/store/data/N_'$N'/c_'$c
82 89
     mkdir -p $dir
83 90
     cd $dir
84 91
     LiebLin_DSF $whichDSF $c $N $N 0 $iKmax $kBT $Max_Secs $target_sumrule $refine
85 92
     cd $basedir
86
-    echo ' Successfully computed DSFs for c =' $c', N = '$N'.\n'
93
+    echo ' Successfully computed DSFs for c =' $c', N = '$N'.\n' | tee -a $logfile
87 94
 done
95
+
96
+echo '\n\n*** Successfully completed build_LiebLin_c_scan_k_range on '$(date '+%Y-%m-%d-%Hh%M') | tee -a $logfile

+ 5
- 3
scripts/build_LiebLin_catalogue_k_fixed.sh View File

@@ -6,8 +6,8 @@
6 6
 # for a range of values of c centered on 4 with 8 up/down factors of 2,
7 7
 # and momenta in multiples of kF/4 from 1 to 16.
8 8
 
9
-# For each combination c/k, the LiebLin_Catalogue_Fixed_c_k_Nscaling
10
-# executable is invoked.
9
+# For each combination c & k, the LiebLin_Catalogue_Fixed_c_k_Nscaling
10
+# executable is invoked, which computes up to the highest N possible in view of time.
11 11
 
12 12
 
13 13
 if [[ $# -ne 4 ]]; then
@@ -50,7 +50,7 @@ elif [[ $whichDSF == 'g' ]]; then
50 50
 fi
51 51
 
52 52
 mkdir -p logs
53
-logfile='logs/run_'$whichDSF'_kBT_'$kBT'_k_fixed_sr_'$target_sumrule'_'$(date '+%Y-%m-%d-%Hh%M')'.log'
53
+logfile='logs/run_catalogue_k_fixed_'$whichDSF'_kBT_'$kBT'_sr_'$target_sumrule'_nr_minutes_'$nr_minutes'_'$(date '+%Y-%m-%d-%Hh%M')'.log'
54 54
 touch $logfile
55 55
 
56 56
 clist=(1024 512 256 128 64 32 16 8 4 2 1 0.5 0.25 0.125 0.0625 0.03125 0.015625)
@@ -71,3 +71,5 @@ do
71 71
 	echo '** Successfully completed run for c =' $c', kfact = '$nk'.\n' | tee -a $logfile
72 72
     done
73 73
 done
74
+
75
+echo '\n\n*** Successfully completed build_LiebLin_catalogue_k_fixed on '$(date '+%Y-%m-%d-%Hh%M') | tee -a $logfile

+ 5
- 3
scripts/build_LiebLin_catalogue_k_range.sh View File

@@ -7,7 +7,7 @@
7 7
 # and momenta in range from 0 to 4kF.
8 8
 
9 9
 # For each c, the LiebLin_Catalogue_Fixed_c_Nscaling
10
-# executable is invoked.
10
+# executable is invoked, which computes up to the highest N possible in view of time.
11 11
 
12 12
 
13 13
 if [[ $# -ne 5 ]]; then
@@ -56,7 +56,7 @@ elif [[ $whichDSF == 'g' ]]; then
56 56
 fi
57 57
 
58 58
 mkdir -p logs
59
-logfile='logs/run_'$whichDSF'_kBT_'$kBT'_k_range_sr_'$target_sumrule'_'$(date '+%Y-%m-%d-%Hh%M')'.log'
59
+logfile='logs/run_catalogue_k_range_'$whichDSF'_kBT_'$kBT'_sr_'$target_sumrule'_nkmax_'$nkmax'_nr_minutes_'$nr_minutes'_'$(date '+%Y-%m-%d-%Hh%M')'.log'
60 60
 touch $logfile
61 61
 
62 62
 clist=(1024 512 256 128 64 32 16 8 4 2 1 0.5 0.25 0.125 0.0625 0.03125 0.015625)
@@ -72,5 +72,7 @@ do
72 72
     cd $dir
73 73
     LiebLin_Catalogue_Fixed_c_Nscaling $whichDSF $c $nkmax $kBT $target_sumrule 0 $nr_minutes | tee -a $basedir/$logfile
74 74
     cd $basedir
75
-    echo '** Successfully completed run for c =' $c', kfact = '$nk'.\n' | tee -a $logfile
75
+    echo '** Successfully completed run for c =' $c'.\n' | tee -a $logfile
76 76
 done
77
+
78
+echo '\n\n*** Successfully completed build_LiebLin_catalogue_k_range on '$(date '+%Y-%m-%d-%Hh%M') | tee -a $logfile

Loading…
Cancel
Save