summaryrefslogtreecommitdiff
path: root/hp_height_study_driver.sh
diff options
context:
space:
mode:
authorConnor Moore <connor.moore@psi.ch>2026-07-07 14:23:49 +0200
committerConnor Moore <connor.moore@psi.ch>2026-07-07 14:23:49 +0200
commit3e72a369b6567702711774ea0deec4fbfe47790a (patch)
treeeba39c06ecd9cc3aade125d0147d3e32ad91b791 /hp_height_study_driver.sh
parent13bfcb2cb9c9b06702fe783623837354c980f667 (diff)
Added helper bash script for getting k-eff range for pool heights and fixed driver script
Diffstat (limited to 'hp_height_study_driver.sh')
-rwxr-xr-xhp_height_study_driver.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/hp_height_study_driver.sh b/hp_height_study_driver.sh
index 06a094d..ee4d4d9 100755
--- a/hp_height_study_driver.sh
+++ b/hp_height_study_driver.sh
@@ -2,11 +2,11 @@
mkdir -p results/outputs
touch results/keff_table
-echo "\#" $(date) > results/keff_table
+echo "#" $(date) > results/keff_table
if [[ $1 == "lcl" ]]; then
- prog=openmc-inst01.py krusty.py
+ prog=(openmc-inst01.py krusty.py -l)
else
prog=./krusty.py
fi
@@ -18,7 +18,7 @@ for pool_height in $(seq 1 45); do
echo -e "$green Starting runs for $pool_height cm pool height... $reset"
for sat_height in $(seq $pool_height 45); do
output_file=results/outputs/p$pool_height\_s$sat_height.out
- $prog -p $pool_height -s $sat_height > $output_file
+ "${prog[@]}" -p $pool_height -s $sat_height > $output_file
keff=$(cat $output_file | grep "Combined k-effective" | cut -d "=" -f 2 | cut -d "+" -f 1)
pm=$(cat $output_file | grep "Combined k-effective" | cut -d "=" -f 2 | cut -d "-" -f 2)
md5=$(cat $output_file | grep "MD5:" | cut -d ":" -f 2 | sed "s/ //g")