Skip to content

Commit

Permalink
Regression test bug fixes for running on Jet or with Rocoto (#981)
Browse files Browse the repository at this point in the history
* Bug fixes for running on jet or with rocoto
1. Correctly detect Jet when deciding build job runtimes
2. Do not delete out and err files in compile & test jobs
3. Correct dependencies for WW3 in Rocoto
4. Do not hard-code ACCNR to h-nems
This PR also contains fv3/ccpp physics (CCPP PR#812) updates that implements a vertically-integrated formula to properly compute tracer column mass and ensure mass conservation for all tracers except TKE. See issue NCAR/ccpp-physics#811 for details
  • Loading branch information
SamuelTrahanNOAA committed Jan 5, 2022
1 parent 58ab0e2 commit 0f047b2
Show file tree
Hide file tree
Showing 14 changed files with 3,451 additions and 3,354 deletions.
2 changes: 1 addition & 1 deletion FV3
Submodule FV3 updated 1 files
+1 −1 ccpp/physics
282 changes: 141 additions & 141 deletions tests/RegressionTests_cheyenne.gnu.log

Large diffs are not rendered by default.

912 changes: 456 additions & 456 deletions tests/RegressionTests_cheyenne.intel.log

Large diffs are not rendered by default.

902 changes: 451 additions & 451 deletions tests/RegressionTests_gaea.intel.log

Large diffs are not rendered by default.

282 changes: 141 additions & 141 deletions tests/RegressionTests_hera.gnu.log

Large diffs are not rendered by default.

930 changes: 465 additions & 465 deletions tests/RegressionTests_hera.intel.log

Large diffs are not rendered by default.

848 changes: 424 additions & 424 deletions tests/RegressionTests_jet.intel.log

Large diffs are not rendered by default.

918 changes: 459 additions & 459 deletions tests/RegressionTests_orion.intel.log

Large diffs are not rendered by default.

574 changes: 287 additions & 287 deletions tests/RegressionTests_wcoss_cray.log

Large diffs are not rendered by default.

1,120 changes: 605 additions & 515 deletions tests/RegressionTests_wcoss_dell_p3.log

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions tests/rt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,12 @@ elif [[ $MACHINE_ID = jet.* ]]; then

QUEUE=batch
COMPILE_QUEUE=batch
ACCNR=h-nems
ACCNR=${ACCNR:-h-nems}
PARTITION=xjet
DISKNM=/lfs4/HFIP/h-nems/emc.nemspara/RT
dprefix=/lfs4/HFIP/h-nems/$USER
STMP=$dprefix/RT_BASELINE
PTMP=$dprefix/RT_RUNDIRS
dprefix=${dprefix:-/lfs4/HFIP/$ACCNR/$USER}
STMP=${STMP:-$dprefix/RT_BASELINE}
PTMP=${PTMP:-$dprefix/RT_RUNDIRS}

SCHEDULER=slurm
cp fv3_conf/fv3_slurm.IN_jet fv3_conf/fv3_slurm.IN
Expand Down Expand Up @@ -467,7 +467,7 @@ if [[ $TESTS_FILE =~ '35d' ]] || [[ $TESTS_FILE =~ 'weekly' ]]; then
TEST_35D=true
fi

BL_DATE=20211230
BL_DATE=20220103
if [[ $MACHINE_ID = hera.* ]] || [[ $MACHINE_ID = orion.* ]] || [[ $MACHINE_ID = cheyenne.* ]] || [[ $MACHINE_ID = gaea.* ]] || [[ $MACHINE_ID = jet.* ]] || [[ $MACHINE_ID = s4.* ]]; then
RTPWD=${RTPWD:-$DISKNM/NEMSfv3gfs/develop-${BL_DATE}/${RT_COMPILER^^}}
else
Expand Down
15 changes: 8 additions & 7 deletions tests/rt_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,10 @@ rocoto_create_compile_task() {

# serialize WW3 builds. FIXME
DEP_STRING=""
if [[ ${MAKE_OPT^^} =~ "WW3=Y" && ${COMPILE_PREV_WW3_NR} != '' ]]; then
DEP_STRING="<dependency><taskdep task=\"compile_${COMPILE_PREV_WW3_NR}\"/></dependency>"
if [[ ${COMPILE_PREV_WW3_NR} != '' ]]; then
if [[ ${MAKE_OPT^^} =~ "-DAPP=ATMW" ]] || [[ ${MAKE_OPT^^} =~ "-DAPP=S2SW" ]] || [[ ${MAKE_OPT^^} =~ "-DAPP=HAFSW" ]] || [[ ${MAKE_OPT^^} =~ "-DAPP=HAFS-ALL" ]] ; then
DEP_STRING="<dependency><taskdep task=\"compile_${COMPILE_PREV_WW3_NR}\"/></dependency>"
fi
fi

NATIVE=""
Expand All @@ -401,7 +403,7 @@ rocoto_create_compile_task() {
BUILD_CORES=24
NATIVE="<exclusive></exclusive> <envar><name>PATHTR</name><value>&PATHTR;</value></envar>"
fi
if [[ ${MACHINE_ID} == jet ]]; then
if [[ ${MACHINE_ID} == jet.* ]]; then
BUILD_WALLTIME="01:00:00"
fi
if [[ ${MACHINE_ID} == orion.* ]]; then
Expand All @@ -421,8 +423,7 @@ rocoto_create_compile_task() {
<partition>${PARTITION}</partition>
<cores>${BUILD_CORES}</cores>
<walltime>${BUILD_WALLTIME}</walltime>
<stdout>&RUNDIR_ROOT;/compile_${COMPILE_NR}/out</stdout>
<stderr>&RUNDIR_ROOT;/compile_${COMPILE_NR}/err</stderr>
<join>&RUNDIR_ROOT;/compile_${COMPILE_NR}.log</join>
${NATIVE}
</task>
EOF
Expand Down Expand Up @@ -459,8 +460,8 @@ rocoto_create_run_task() {
<partition>${PARTITION}</partition>
<nodes>${NODES}:ppn=${TPN}</nodes>
<walltime>00:${WLCLK}:00</walltime>
<stdout>&RUNDIR_ROOT;/${TEST_NAME}${RT_SUFFIX}/out</stdout>
<stderr>&RUNDIR_ROOT;/${TEST_NAME}${RT_SUFFIX}/err</stderr>
<stdout>&RUNDIR_ROOT;/${TEST_NAME}${RT_SUFFIX}.out</stdout>
<stderr>&RUNDIR_ROOT;/${TEST_NAME}${RT_SUFFIX}.err</stderr>
${NATIVE}
</task>
EOF
Expand Down
5 changes: 4 additions & 1 deletion tests/run_compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ if [[ $ROCOTO = 'false' ]]; then
submit_and_wait job_card
else
chmod u+x job_card
./job_card
( ./job_card 2>&1 1>&3 3>&- | tee err ) 3>&1 1>&2 | tee out
# The above shell redirection copies stdout to "out" and stderr to "err"
# while still sending them to stdout and stderr. It does this without
# relying on bash-specific extensions or non-standard OS features.
fi

ls -l ${PATHTR}/tests/fv3_${COMPILE_NR}.exe
Expand Down
5 changes: 4 additions & 1 deletion tests/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,10 @@ else
submit_and_wait job_card
else
chmod u+x job_card
./job_card
( ./job_card 2>&1 1>&3 3>&- | tee err ) 3>&1 1>&2 | tee out
# The above shell redirection copies stdout to "out" and stderr to "err"
# while still sending them to stdout and stderr. It does this without
# relying on bash-specific extensions or non-standard OS features.
fi

fi
Expand Down

0 comments on commit 0f047b2

Please sign in to comment.