10
1
mirror of https://github.com/pfloos/quack synced 2024-12-23 04:43:42 +01:00
QuAcK/run_sph.sh

42 lines
770 B
Bash
Raw Normal View History

2019-04-24 15:33:04 +02:00
#! /bin/bash
2019-05-07 22:55:36 +02:00
Lmin=1
Lmax=1
Mmax=10
2019-04-24 15:33:04 +02:00
rs=$1
if [ $# != 1 ]
then
echo "Please, specify rs value"
else
echo "------------------------"
echo "Maxmium L value = " $Lmax
echo "Maxmium M value = " $Mmax
echo "------------------------"
echo
2019-04-29 09:43:33 +02:00
for (( L=$Lmin ; L<=$Lmax ; L++ )) ; do
2019-04-24 15:33:04 +02:00
ne=$(bc -l <<< "(2*($L+1)*($L+1))")
echo
echo "------------------------"
echo "Number of electrons = " $ne
echo "------------------------"
echo
for (( M=$L+1 ; M<=$Mmax ; M++ )) ; do
nb=$(bc -l <<< "(($M+1)*($M+1))")
echo "Number of basis functions = " $nb
echo -e "# rs \n" $rs > input/sph
2019-05-07 22:55:36 +02:00
./GoSph $ne $M > out/Sph_${ne}_${nb}.out
grep "Total CPU time for QuAcK =" out/Sph_${ne}_${nb}.out
2019-04-24 15:33:04 +02:00
done
done
fi