added check for packages already existing

This commit is contained in:
caes 2017-06-26 04:27:12 -04:00
parent a58be8e76a
commit 912ab1c031
3 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,3 @@
#Energy nFn(mehdipour) nFn(magdziarz)
3.04473e-09 0.0000e+00 0.0000e+00
3.05490e-09 0.0000e+00 0.0000e+00
3.06510e-09 0.0000e+00 0.0000e+00

View File

@ -7,16 +7,10 @@
continuum_file_orig=$1
continuum_file_new=hnuineV.$continuum_file_orig
while read photon_energy_in_ryd everything_else; do
while read -r rydbergs sed1 sed2
do
# 1 Ryd = 13.60569253 eV
photon_energy_in_eV=`bc <<< "$photon_energy_in_ryd * 13.60569253"
echo $photon_energy_in_eV $everything_else`
done < $continuum_file_orig
eV=$(bc <<< "$rydbergs * 13.60569253")
echo "$eV $sed1 $sed2"
done

View File

@ -12,6 +12,13 @@ base_dir=`pwd`
bin_dir="$script_dir/../bin"
griddir=$1
grid_id=$(echo ${griddir}|sed 's@^\.\/\(.*\)@\1@'|sed 's@.grids@@'|sed 's@\/@.@g')
if [[ -e "${grid_id}.tar.gz" ]]; then
echo "package exists"
exit 5
fi
cd $griddir
mkdir -p fortfiles
cd fortfiles