Skip to content

Commit

Permalink
fix unbound variables on ctest
Browse files Browse the repository at this point in the history
  • Loading branch information
chan-hoo committed Sep 27, 2024
1 parent acff3e9 commit dcdaa34
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sorc/test/run_ctest_platform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export MACHINE_ID=${PLATFORM}
cd ${BUILD_DIR}
cp -p "${TEST_DIR}/${PLATFORM}_ctest.sh" ${BUILD_DIR}/.
cp -p "${TEST_DIR}/run_${PLATFORM}_ctest.sh" ${BUILD_DIR}/.
cp -p "${TEST_DIR}/check_ctest.sh" ${BUILD_DIR}/.
#cp -p "${TEST_DIR}/check_ctest.sh" ${BUILD_DIR}/.

if [ "${PLATFORM}" = "hera" ] || [ "${PLATFORM}" = "orion" ] || [ "${PLATFORM}" = "hercules" ]; then
JOB_ID=$(sbatch --job-name=ctest --account=epic --qos=batch --ntasks-per-node=40 --nodes=8 --time=00:30:00 ./${PLATFORM}_ctest.sh | awk '{print $4}')
Expand Down
11 changes: 8 additions & 3 deletions sorc/test/run_ufs_datm_lnd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,15 @@ else
echo "WARNING: input data path is not specified for this machine."
INPUTDATA_ROOT=${FIXdir}
fi
MACHINE_ID=${PLATFORM}
RT_COMPILER=${RT_COMPILER:-intel}
export MACHINE_ID=${PLATFORM}
export RT_COMPILER=${RT_COMPILER:-intel}
export CREATE_BASELINE=false
export skip_check_result=false
export RTVERBOSE=false
export delete_rundir=false
export WLCLK=30
ATOL="1e-7"
source ${PATHRT}/detect_machine.sh

source ${PATHRT}/rt_utils.sh
source ${PATHRT}/default_vars.sh
source ${PATHRT}/tests/$TEST_NAME
Expand Down

0 comments on commit dcdaa34

Please sign in to comment.