Tweak script
This commit is contained in:
parent
5125a85878
commit
3477975099
|
@ -10,8 +10,8 @@
|
||||||
# executable is invoked.
|
# executable is invoked.
|
||||||
|
|
||||||
|
|
||||||
if [[ $# -ne 4 ]]; then
|
if [[ $# -ne 4 ]]; then
|
||||||
echo "Arguments needed: whichDSF, kBT, target_sumrule, nr_minutes (for each c, k combination)."
|
echo "Arguments needed: whichDSF, kBT, target_sumrule, nr_minutes (for each c, k combination)."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ whichDSF=$1
|
||||||
kBT=$2
|
kBT=$2
|
||||||
target_sumrule=$3
|
target_sumrule=$3
|
||||||
|
|
||||||
logfile='run-'$(strftime '%Y-%m-%d-%Hh%m')'.log'
|
logfile='run_'$whichDSF'_kBT_'$kBT'_sr_'$target_sumrule'_'$(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)
|
||||||
|
@ -51,7 +51,7 @@ basedir="$(pwd)"
|
||||||
|
|
||||||
for c in $clist
|
for c in $clist
|
||||||
do
|
do
|
||||||
for nk in {1..16}
|
for nk in {1..16}
|
||||||
do
|
do
|
||||||
echo 'Starting run for c =' $c', kfact = '$nk | tee -a $logfile
|
echo 'Starting run for c =' $c', kfact = '$nk | tee -a $logfile
|
||||||
dir='c_'$c'/kBT_'$kBT'/k_fixed/k_'${(l:2::0:)nk}'kFo4/sr_'$target_sumrule
|
dir='c_'$c'/kBT_'$kBT'/k_fixed/k_'${(l:2::0:)nk}'kFo4/sr_'$target_sumrule
|
||||||
|
@ -62,4 +62,4 @@ do
|
||||||
cd $basedir
|
cd $basedir
|
||||||
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
|
do
|
||||||
|
|
Loading…
Reference in New Issue