Polish initial version of scripts
This commit is contained in:
parent
4fa46e0cac
commit
4f45ab3ee0
|
@ -4,6 +4,12 @@
|
||||||
# computes the required DSF (up to required sumrule)
|
# computes the required DSF (up to required sumrule)
|
||||||
# over a range of values of c_int.
|
# over a range of values of c_int.
|
||||||
|
|
||||||
|
# This script cannot be restarted, it must be run as a one-off towards successful completion.
|
||||||
|
|
||||||
|
# The data can then be used to produce animated graphs (with c_int evolving),
|
||||||
|
# see the `build_LiebLin_c_scan_k_fixed_dsfs[_plot]` scripts, or
|
||||||
|
# (better) the shortcuts `build_LiebLin_c_scan_k_fixed_set[_plots]`.
|
||||||
|
|
||||||
if [[ $# -ne 5 ]]; then
|
if [[ $# -ne 5 ]]; then
|
||||||
echo "Arguments needed: whichDSF, kBT, target_sumrule, N, nk (momentum in units of kF/4)."
|
echo "Arguments needed: whichDSF, kBT, target_sumrule, N, nk (momentum in units of kF/4)."
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -48,6 +54,10 @@ elif [[ $whichDSF == 'g' ]]; then
|
||||||
correlator='psi-psidag'
|
correlator='psi-psidag'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mkdir -p logs
|
||||||
|
logfile='logs/run_c_scan_k_fixed_'$whichDSF'_kBT_'$kBT'_sr_'$target_sumrule'_N_'$N'_nk_'$nk'_'$(date '+%Y-%m-%d-%Hh%M')'.log'
|
||||||
|
touch $logfile
|
||||||
|
|
||||||
iK=$(($nk * $N/8))
|
iK=$(($nk * $N/8))
|
||||||
|
|
||||||
Max_Secs=3600
|
Max_Secs=3600
|
||||||
|
@ -77,11 +87,13 @@ basedir="$(pwd)"
|
||||||
|
|
||||||
for c in $clist
|
for c in $clist
|
||||||
do
|
do
|
||||||
echo '** Starting run for c =' $c', N = '$N
|
echo '** Starting run for c =' $c', N = '$N', k = '$nk'kF/4' | tee -a $logfile
|
||||||
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
|
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
|
||||||
mkdir -p $dir
|
mkdir -p $dir
|
||||||
cd $dir
|
cd $dir
|
||||||
LiebLin_DSF $whichDSF $c $N $N $iK $iK $kBT $Max_Secs $target_sumrule $refine
|
LiebLin_DSF $whichDSF $c $N $N $iK $iK $kBT $Max_Secs $target_sumrule $refine
|
||||||
cd $basedir
|
cd $basedir
|
||||||
echo ' Successfully computed DSFs for c =' $c', N = '$N'.\n'
|
echo ' Successfully computed DSFs for c =' $c', N = '$N', k = '$nk'kF/4.\n' | tee -a $logfile
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo '\n\n*** Successfully completed build_LiebLin_c_scan_k_fixed on '$(date '+%Y-%m-%d-%Hh%M') | tee -a $logfile
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/zsh
|
#! /bin/zsh
|
||||||
|
|
||||||
# Builds the set of c_scans for nk = 1 up to nkmax.
|
# Runs `build_LiebLin_c_scan_k_fixed` for nk = 1 up to nkmax.
|
||||||
|
|
||||||
if [[ $# -ne 5 ]]; then
|
if [[ $# -ne 5 ]]; then
|
||||||
echo "Arguments needed: whichDSF, kBT, target_sumrule, N, nkmax (max momentum in units of kF/4)."
|
echo "Arguments needed: whichDSF, kBT, target_sumrule, N, nkmax (max momentum in units of kF/4)."
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/zsh
|
#! /bin/zsh
|
||||||
|
|
||||||
# Builds the set of plots for a `build_LiebLin_c_scan_k_fixed_set` run.
|
# Runs `build_LiebLin_c_scan_k_fixed_dsfs` and `_plots` for nk = 1 up to nkmax.
|
||||||
|
|
||||||
if [[ $# -ne 6 ]]; then
|
if [[ $# -ne 6 ]]; then
|
||||||
echo "Arguments needed: whichDSF, kBT, target_sumrule, N, nkmax (max momentum in units of kF/4), width."
|
echo "Arguments needed: whichDSF, kBT, target_sumrule, N, nkmax (max momentum in units of kF/4), width."
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
# computes the required DSF (up to required sumrule)
|
# computes the required DSF (up to required sumrule)
|
||||||
# over a range of values of c_int.
|
# over a range of values of c_int.
|
||||||
|
|
||||||
|
# The data can then be used to produce animated graphs (with c_int evolving),
|
||||||
|
# see the `build_LiebLin_c_scan_k_range_dsfs[_plot]` scripts.
|
||||||
|
|
||||||
if [[ $# -ne 5 ]]; then
|
if [[ $# -ne 5 ]]; then
|
||||||
echo "Arguments needed: whichDSF, kBT, target_sumrule, N, nkmax (max momentum in units of kF/4)."
|
echo "Arguments needed: whichDSF, kBT, target_sumrule, N, nkmax (max momentum in units of kF/4)."
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -48,6 +51,10 @@ elif [[ $whichDSF == 'g' ]]; then
|
||||||
correlator='psi-psidag'
|
correlator='psi-psidag'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mkdir -p logs
|
||||||
|
logfile='logs/run_c_scan_k_range_'$whichDSF'_kBT_'$kBT'_sr_'$target_sumrule'_N_'$N'_nkmax_'$nkmax'_'$(date '+%Y-%m-%d-%Hh%M')'.log'
|
||||||
|
touch $logfile
|
||||||
|
|
||||||
iKmax=$(($nkmax * $N/8))
|
iKmax=$(($nkmax * $N/8))
|
||||||
|
|
||||||
Max_Secs=3600
|
Max_Secs=3600
|
||||||
|
@ -77,11 +84,13 @@ basedir="$(pwd)"
|
||||||
|
|
||||||
for c in $clist
|
for c in $clist
|
||||||
do
|
do
|
||||||
echo '** Starting run for c =' $c', N = '$N
|
echo '** Starting run for c =' $c', N = '$N | tee -a $logfile
|
||||||
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
|
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
|
||||||
mkdir -p $dir
|
mkdir -p $dir
|
||||||
cd $dir
|
cd $dir
|
||||||
LiebLin_DSF $whichDSF $c $N $N 0 $iKmax $kBT $Max_Secs $target_sumrule $refine
|
LiebLin_DSF $whichDSF $c $N $N 0 $iKmax $kBT $Max_Secs $target_sumrule $refine
|
||||||
cd $basedir
|
cd $basedir
|
||||||
echo ' Successfully computed DSFs for c =' $c', N = '$N'.\n'
|
echo ' Successfully computed DSFs for c =' $c', N = '$N'.\n' | tee -a $logfile
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo '\n\n*** Successfully completed build_LiebLin_c_scan_k_range on '$(date '+%Y-%m-%d-%Hh%M') | tee -a $logfile
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
# for a range of values of c centered on 4 with 8 up/down factors of 2,
|
# for a range of values of c centered on 4 with 8 up/down factors of 2,
|
||||||
# and momenta in multiples of kF/4 from 1 to 16.
|
# and momenta in multiples of kF/4 from 1 to 16.
|
||||||
|
|
||||||
# For each combination c/k, the LiebLin_Catalogue_Fixed_c_k_Nscaling
|
# For each combination c & k, the LiebLin_Catalogue_Fixed_c_k_Nscaling
|
||||||
# executable is invoked.
|
# executable is invoked, which computes up to the highest N possible in view of time.
|
||||||
|
|
||||||
|
|
||||||
if [[ $# -ne 4 ]]; then
|
if [[ $# -ne 4 ]]; then
|
||||||
|
@ -50,7 +50,7 @@ elif [[ $whichDSF == 'g' ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p logs
|
mkdir -p logs
|
||||||
logfile='logs/run_'$whichDSF'_kBT_'$kBT'_k_fixed_sr_'$target_sumrule'_'$(date '+%Y-%m-%d-%Hh%M')'.log'
|
logfile='logs/run_catalogue_k_fixed_'$whichDSF'_kBT_'$kBT'_sr_'$target_sumrule'_nr_minutes_'$nr_minutes'_'$(date '+%Y-%m-%d-%Hh%M')'.log'
|
||||||
touch $logfile
|
touch $logfile
|
||||||
|
|
||||||
clist=(1024 512 256 128 64 32 16 8 4 2 1 0.5 0.25 0.125 0.0625 0.03125 0.015625)
|
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
|
||||||
echo '** Successfully completed run for c =' $c', kfact = '$nk'.\n' | tee -a $logfile
|
echo '** Successfully completed run for c =' $c', kfact = '$nk'.\n' | tee -a $logfile
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo '\n\n*** Successfully completed build_LiebLin_catalogue_k_fixed on '$(date '+%Y-%m-%d-%Hh%M') | tee -a $logfile
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# and momenta in range from 0 to 4kF.
|
# and momenta in range from 0 to 4kF.
|
||||||
|
|
||||||
# For each c, the LiebLin_Catalogue_Fixed_c_Nscaling
|
# For each c, the LiebLin_Catalogue_Fixed_c_Nscaling
|
||||||
# executable is invoked.
|
# executable is invoked, which computes up to the highest N possible in view of time.
|
||||||
|
|
||||||
|
|
||||||
if [[ $# -ne 5 ]]; then
|
if [[ $# -ne 5 ]]; then
|
||||||
|
@ -56,7 +56,7 @@ elif [[ $whichDSF == 'g' ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p logs
|
mkdir -p logs
|
||||||
logfile='logs/run_'$whichDSF'_kBT_'$kBT'_k_range_sr_'$target_sumrule'_'$(date '+%Y-%m-%d-%Hh%M')'.log'
|
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'
|
||||||
touch $logfile
|
touch $logfile
|
||||||
|
|
||||||
clist=(1024 512 256 128 64 32 16 8 4 2 1 0.5 0.25 0.125 0.0625 0.03125 0.015625)
|
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
|
||||||
cd $dir
|
cd $dir
|
||||||
LiebLin_Catalogue_Fixed_c_Nscaling $whichDSF $c $nkmax $kBT $target_sumrule 0 $nr_minutes | tee -a $basedir/$logfile
|
LiebLin_Catalogue_Fixed_c_Nscaling $whichDSF $c $nkmax $kBT $target_sumrule 0 $nr_minutes | tee -a $basedir/$logfile
|
||||||
cd $basedir
|
cd $basedir
|
||||||
echo '** Successfully completed run for c =' $c', kfact = '$nk'.\n' | tee -a $logfile
|
echo '** Successfully completed run for c =' $c'.\n' | tee -a $logfile
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo '\n\n*** Successfully completed build_LiebLin_catalogue_k_range on '$(date '+%Y-%m-%d-%Hh%M') | tee -a $logfile
|
||||||
|
|
Loading…
Reference in New Issue