Skip to content

Commit

Permalink
Reverse comparision so agrees with how documented
Browse files Browse the repository at this point in the history
  • Loading branch information
ekluzek committed May 13, 2024
1 parent 0b41efe commit ac3cb73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bld/unit_testers/compare_namelists
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ usage() {
echo " Run in verbose mode"
echo "[-pa|--physicsA <physics-version>] "
echo " Namelists of first physics version for comparison"
echo " (in current directory)"
echo " (in baseline directory)"
echo "[-pb|--physicsB <physics-version>] "
echo " Namelists of second physics version to compare to the first one"
echo " (in baseline directory)"
echo " (in current directory)"
echo "[-b|--baseline <baseline>] "
echo " Baseline directory to compare to (default current directory)"
echo " "
Expand Down Expand Up @@ -90,8 +90,8 @@ if [ "${filenames[*]}" = "$filepat" ]; then
fi
for file in ${filenames[*]}
do
fileA="./$file"
fileB="$baseline/$file"
fileA="$baseline/$file"
fileB="./$file"
# If physicsA option used and the file matches the physics input
if [[ "$fileA" =~ "-phys+$PHYSA" ]] || [ "$PHYSA" = "all" ]; then
# Replace physicsB for fileB
Expand Down

0 comments on commit ac3cb73

Please sign in to comment.