diff options
Diffstat (limited to 'hp_height_study_driver.sh')
| -rwxr-xr-x | hp_height_study_driver.sh | 6 |
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") |
