4
1
mirror of https://github.com/pfloos/quack synced 2024-06-21 20:52:21 +02:00
quack/run_sph.sh

41 lines
748 B
Bash
Raw Normal View History

2019-04-24 15:33:04 +02:00
#! /bin/bash
2019-04-24 18:00:54 +02:00
Lmax=6
Mmax=6
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
for (( L=0 ; L<=$Lmax ; L++ )) ; do
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
./GoSph $ne $M > Sph_${ne}_${M}.out
2019-04-24 18:00:54 +02:00
grep "Total CPU time for QuAcK =" Sph_${ne}_${M}.out
2019-04-24 15:33:04 +02:00
done
done
fi