Skip to content

Commit

Permalink
Fix missing mod_def.ww3 file in multigrid regression tests for track …
Browse files Browse the repository at this point in the history
…output (#1091)
  • Loading branch information
ukmo-ccbunney authored Oct 10, 2023
1 parent 7bbdaca commit b1356dd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion regtests/bin/run_cmake_test
Original file line number Diff line number Diff line change
Expand Up @@ -2027,7 +2027,7 @@ done # end of loop on progs
case $outopt in
native) out_progs="ww3_trck" ;;
netcdf) out_progs="ww3_trnc" ;;
both) out_progs="ww3_trck ww3_trnc" ;;
both|all) out_progs="ww3_trck ww3_trnc" ;;
*) out_progs="" ;;
esac

Expand Down Expand Up @@ -2070,6 +2070,9 @@ do
then
continue
fi

\ln -s mod_def.$g mod_def.ww3

gu="_$g"
fileconf="$prog${gu}"
else
Expand Down Expand Up @@ -2124,6 +2127,7 @@ do
\rm -f $prog.nml
if [ $multi -eq 2 ]
then
\rm -f mod_def.ww3
\rm -f track_o.ww3
if [ $nml_input ] && [ ! -z "`basename ${ifile} | grep -o nml`" ]
then
Expand Down
6 changes: 5 additions & 1 deletion regtests/bin/run_test
Original file line number Diff line number Diff line change
Expand Up @@ -2368,7 +2368,7 @@ done # end of loop on progs
case $outopt in
native) out_progs="ww3_trck" ;;
netcdf) out_progs="ww3_trnc" ;;
both) out_progs="ww3_trck ww3_trnc" ;;
both|all) out_progs="ww3_trck ww3_trnc" ;;
*) out_progs="" ;;
esac

Expand Down Expand Up @@ -2448,6 +2448,9 @@ do
then
continue
fi

\ln -s mod_def.$g mod_def.ww3

gu="_$g"
fileconf="$prog${gu}"
else
Expand Down Expand Up @@ -2502,6 +2505,7 @@ do
\rm -f $prog.nml
if [ $multi -eq 2 ]
then
\rm -f mod_def.ww3
\rm -f track_o.ww3
if [ $nml_input ] && [ ! -z "`echo ${ifile} | grep -o nml`" ]
then
Expand Down

0 comments on commit b1356dd

Please sign in to comment.