Skip to content

Commit

Permalink
run_cmake_test: switch manipulation to enforce SHRD build
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewMasarik-NOAA committed Dec 20, 2024
1 parent 60dac05 commit 27622c0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions regtests/bin/run_cmake_test
Original file line number Diff line number Diff line change
Expand Up @@ -424,13 +424,13 @@ then
sed 's/OMPG //' | sed 's/NOGRB/NCEP2/' | \
sed 's/OMPH //' | sed 's/PDLIB //' | \
sed 's/B4B //' | sed 's/METIS //' | \
sed 's/SCOTCH //' > $path_build/switch
sed 's/SCOTCH //' | sed 's/SCRIPMPI //' > $path_build/switch
else
cat $file_c | sed 's/DIST/SHRD/' | sed 's/MPI //' | \
sed 's/OMPG //' | \
sed 's/OMPH //' | sed 's/PDLIB //' | \
sed 's/B4B //' | sed 's/METIS //' | \
sed 's/SCOTCH //' > $path_build/switch
sed 's/SCOTCH //' | sed 's/SCRIPMPI //' > $path_build/switch
fi

echo "Switch file is $path_build/switch with switches:" >> $ofile
Expand All @@ -444,14 +444,14 @@ then
fi
make -j 8 VERBOSE=1 >> $ofile 2>&1
rc=$?
if (( rc != 0 )); then
if (( rc != 0 )); then
echo "Fatal error in make."
echo "The build log is in ${ofile}"
exit ${rc}
fi
make install >> $ofile 2>&1
rc=$?
if (( rc != 0 )); then
if (( rc != 0 )); then
echo "Fatal error in make install."
echo "The build log is in $ofile"
exit ${rc}
Expand Down Expand Up @@ -519,14 +519,14 @@ else
fi
make -j 8 VERBOSE=1 >> $ofile 2>&1
rc=$?
if (( rc != 0 )); then
if (( rc != 0 )); then
echo "Fatal error in make."
echo "The build log is in ${ofile}"
exit ${rc}
fi
make install >> $ofile 2>&1
rc=$?
if (( rc != 0 )); then
if (( rc != 0 )); then
echo "Fatal error in make."
echo "The build log is in ${ofile}"
exit ${rc}
Expand Down

0 comments on commit 27622c0

Please sign in to comment.