10
1
mirror of https://github.com/pfloos/quack synced 2024-11-05 21:53:56 +01:00
QuAcK/run_sph.sh

42 lines
761 B
Bash
Raw Normal View History

2019-04-24 15:33:04 +02:00
#! /bin/bash
2019-04-29 09:43:33 +02:00
Lmin=0
Lmax=2
Mmax=3
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-04-29 09:43:33 +02:00
./GoSph $ne $M > Sph_${ne}_${nb}.out
grep "Total CPU time for QuAcK =" Sph_${ne}_${nb}.out
2019-04-24 15:33:04 +02:00
done
done
fi