Skip to content

Commit

Permalink
fix machine detect issue on ctest
Browse files Browse the repository at this point in the history
  • Loading branch information
chan-hoo committed Jun 27, 2024
1 parent 87554b5 commit 8796c8b
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions sorc/test/run_ufs_datm_lnd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,9 @@ echo ${project_binary_dir}
echo ${project_source_dir}

#
MACHINE_ID=${MACHINE_ID:-hera}
TEST_NAME=datm_cdeps_lnd_gswp3
PATHRT=${project_source_dir}/ufs_model.fd/tests
FIXdir=${project_source_dir}/../fix
if [[ "${MACHINE_ID}" == "hera" ]]; then
INPUTDATA_ROOT="/scratch2/NAGAPE/epic/UFS-WM_RT/NEMSfv3gfs/input-data-20240501"
elif [[ "${MACHINE_ID}" == "orion" ]] || [[ "${MACHINE_ID}" == "hercules" ]]; then
INPUTDATA_ROOT="/work/noaa/epic/UFS-WM_RT/NEMSfv3gfs/input-data-20240501"
else
echo "WARNING: input data path is not specified for this machine."
INPUTDATA_ROOT=${FIXdir}
fi

RT_COMPILER=${RT_COMPILER:-intel}
ATOL="1e-7"
Expand All @@ -31,6 +22,16 @@ source ${PATHRT}/default_vars.sh
source ${PATHRT}/tests/$TEST_NAME
source ${PATHRT}/atparse.bash

MACHINE_ID=${MACHINE_ID:-hera}
if [[ "${MACHINE_ID}" == "hera" ]]; then
INPUTDATA_ROOT="/scratch2/NAGAPE/epic/UFS-WM_RT/NEMSfv3gfs/input-data-20240501"
elif [[ "${MACHINE_ID}" == "orion" ]] || [[ "${MACHINE_ID}" == "hercules" ]]; then
INPUTDATA_ROOT="/work/noaa/epic/UFS-WM_RT/NEMSfv3gfs/input-data-20240501"
else
echo "WARNING: input data path is not specified for this machine."
INPUTDATA_ROOT=${FIXdir}
fi

RTPWD=${RTPWD:-$FIXdir/test_base/${TEST_NAME}_${RT_COMPILER}}

if [[ ! -d ${RTPWD} ]]; then
Expand Down

0 comments on commit 8796c8b

Please sign in to comment.