Skip to content

Commit

Permalink
Add logic for other run time options to work.
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGayno-NOAA committed Jan 27, 2025
1 parent 5e29bdc commit fec0dd9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions reg_tests/cpld_gridgen/rt2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,12 @@ while getopts :bcmh opt; do
;;
esac
done

export CREATE_BASELINE
if [[ $CREATE_BASELINE = true ]]; then
rm -rf $NEW_BASELINE_ROOT
mkdir -p $NEW_BASELINE_ROOT
fi

export compiler=${compiler:-intelllvm}
if [[ "$compiler" == "intelllvm" ]]; then
Expand Down Expand Up @@ -124,6 +129,7 @@ while read -r line || [ "$line" ]; do
TEST_NAME=$(echo $line | cut -d'|' -f1 | sed -e 's/^ *//' -e 's/ *$//')
TEST_NAME=${TEST_NAME##mx}

export NEW_BASELINE=${NEW_BASELINE_ROOT}/$TEST_NAME
RUNDIR=$RUNDIR_ROOT/$TEST_NAME
rm -fr $RUNDIR
mkdir -p $RUNDIR
Expand Down

0 comments on commit fec0dd9

Please sign in to comment.