Skip to content

Commit

Permalink
Minor script updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGayno-NOAA committed Aug 20, 2021
1 parent 1c1134b commit a881dad
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
19 changes: 10 additions & 9 deletions reg_tests/global_cycle/C768.lndincsnow.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash

#------------------------------------------------------------------
# Run global_cycle for a C768 test case. Compare output
# to a baseline set of files using the 'nccmp' utility.
# Run global_cycle for a C768 case to test the ingest of snow
# increments from JEDI. Compare output to a baseline set of
# files using the 'nccmp' utility.
#------------------------------------------------------------------

set -x
Expand Down Expand Up @@ -49,7 +50,7 @@ $BASE_GSM/ush/global_cycle_driver.sh
iret=$?
if [ $iret -ne 0 ]; then
set +x
echo "<<< C768 LANDINC CYCLE TEST FAILED. >>>"
echo "<<< C768 LANDINC SNOW CYCLE TEST FAILED. >>>"
exit $iret
fi

Expand All @@ -71,14 +72,14 @@ done
set +x
if [ $test_failed -ne 0 ]; then
echo
echo "*********************************"
echo "<<< C768 LANDINC CYCLE TEST FAILED. >>>"
echo "*********************************"
echo "****************************************"
echo "<<< C768 LANDINC SNOW CYCLE TEST FAILED. >>>"
echo "****************************************"
else
echo
echo "*********************************"
echo "<<< C768 LANDINC CYCLE TEST PASSED. >>>"
echo "*********************************"
echo "***************************************"
echo "<<< C768 LANDINC SNOW CYCLE TEST PASSED. >>>"
echo "***************************************"
fi

exit
20 changes: 11 additions & 9 deletions reg_tests/global_cycle/C768.lndincsoil.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/bash

#------------------------------------------------------------------
# Run global_cycle for a C768 test case. Compare output
# to a baseline set of files using the 'nccmp' utility.
# Run global_cycle for a C768 case to test the ingest and
# application of soil temperature increments from the GSI.
# Compare output to a baseline set of files using the 'nccmp'
# utility.
#------------------------------------------------------------------

set -x
Expand Down Expand Up @@ -50,7 +52,7 @@ $BASE_GSM/ush/global_cycle_driver.sh
iret=$?
if [ $iret -ne 0 ]; then
set +x
echo "<<< C768 LANDINC CYCLE TEST FAILED. >>>"
echo "<<< C768 LANDINC SOILT CYCLE TEST FAILED. >>>"
exit $iret
fi

Expand All @@ -72,14 +74,14 @@ done
set +x
if [ $test_failed -ne 0 ]; then
echo
echo "*********************************"
echo "<<< C768 LANDINC CYCLE TEST FAILED. >>>"
echo "*********************************"
echo "*****************************************"
echo "<<< C768 LANDINC SOILT CYCLE TEST FAILED. >>>"
echo "*****************************************"
else
echo
echo "*********************************"
echo "<<< C768 LANDINC CYCLE TEST PASSED. >>>"
echo "*********************************"
echo "*****************************************"
echo "<<< C768 LANDINC SOILT CYCLE TEST PASSED. >>>"
echo "*****************************************"
fi

exit
1 change: 1 addition & 0 deletions ush/global_cycle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
# DONST Process NST records when using NST model. Default is 'no'.
# DO_SFCCYCLE Call sfcsub routine
# DO_LNDINC Call routine to update soil states with increment files
# DO_SNO_INC Call routine to update snow states with increment files
# zsea1/zsea2 When running with NST model, this is the lower/upper bound
# of depth of sea temperature. In whole mm.
# MAX_TASKS_CY Normally, program should be run with a number of mpi tasks
Expand Down

0 comments on commit a881dad

Please sign in to comment.