mirror of
https://asciireactor.com/otho/cloudy-agn.git
synced 2024-12-05 01:25:09 +00:00
added check for packages already existing
This commit is contained in:
parent
a58be8e76a
commit
912ab1c031
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user