Skip to content

Commit

Permalink
Updates to run the chgres and global_cycle tests on Hera.
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGayno-NOAA committed Oct 18, 2021
1 parent 5d0ee75 commit a0efdd2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
3 changes: 3 additions & 0 deletions reg_tests/chgres_cube/c96.fv3.restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ done
set +x
if [ $test_failed -ne 0 ]; then
echo "<<< C96 FV3 RESTART TEST FAILED. >>>"
if [ "$UPDATE_BASELINE" = "TRUE" ]; then
$HOMEufs/reg_tests/update_baseline.sh $HOMEreg "c96_fv3_restart" $commit_num
fi
else
echo "<<< C96 FV3 RESTART TEST PASSED. >>>"
fi
Expand Down
10 changes: 9 additions & 1 deletion reg_tests/chgres_cube/driver.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,14 @@ QUEUE="${QUEUE:-batch}"
# and baseline data for each test.
#-----------------------------------------------------------------------------

#export UPDATE_BASELINE="FALSE"
export UPDATE_BASELINE="TRUE"

source ../get_hash.sh

export HOMEufs=$PWD/../..

export HOMEreg=/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube
export HOMEreg=/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube.test

LOG_FILE=consistency.log
SUM_FILE=summary.log
Expand All @@ -67,6 +72,9 @@ export OMP_NUM_THREADS=1 # should match cpus-per-task
TEST1=$(sbatch --parsable --ntasks-per-node=6 --nodes=1 -t 0:15:00 -A $PROJECT_CODE -q $QUEUE -J c96.fv3.restart \
-o $LOG_FILE -e $LOG_FILE ./c96.fv3.restart.sh)


exit

#-----------------------------------------------------------------------------
# Initialize C192 using FV3 tiled history files.
#-----------------------------------------------------------------------------
Expand Down
7 changes: 6 additions & 1 deletion reg_tests/global_cycle/driver.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,14 @@ QUEUE="${QUEUE:-batch}"
# Should not have to change anything below.
#-----------------------------------------------------------------------------

#export UPDATE_BASELINE="FALSE"
export UPDATE_BASELINE="TRUE"

source ../get_hash.sh

DATA_DIR="${WORK_DIR}/reg-tests/global-cycle"

export HOMEreg=/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/global_cycle
export HOMEreg=/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/global_cycle.test

export OMP_NUM_THREADS_CY=2

Expand Down

0 comments on commit a0efdd2

Please sign in to comment.