Skip to content

Commit

Permalink
update path for ctest
Browse files Browse the repository at this point in the history
  • Loading branch information
chan-hoo committed Jun 27, 2024
1 parent 0f16063 commit ec53616
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
22 changes: 11 additions & 11 deletions sorc/test/retrieve_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export PATH=${HOME}/.local/bin:${PATH}

# set envs
DATA_ROOT=${project_source_dir}/../fix
INPUTDATA_ROOT=${DATA_ROOT}/UFS_WM
INPUTDATA_ROOT=${DATA_ROOT}

[[ ! -d ${INPUTDATA_ROOT} ]] && mkdir -p ${INPUTDATA_ROOT}
RTPWD=${DATA_ROOT}/test_base
Expand All @@ -38,11 +38,11 @@ aws s3 sync --no-sign-request ${AWS_URL}/test_base/datm_cdeps_lnd_gswp3_intel .
cd ${project_source_dir}

# DATM data
DES_DIR=${INPUTDATA_ROOT}/DATM_GSWP3_input_data
DES_DIR=${INPUTDATA_ROOT}/DATM_input_data/gswp3
[[ ! -d ${DES_DIR} ]] && mkdir -p ${DES_DIR}
echo ${DES_DIR}
cd $DES_DIR
aws s3 sync --no-sign-request ${SRC_DIR}/DATM_GSWP3_input_data .
aws s3 sync --no-sign-request ${SRC_DIR}/DATM_input_data/gswp3 .
cd ${project_source_dir}

# fixed data
Expand All @@ -53,17 +53,17 @@ cd $DES_DIR
aws s3 sync --no-sign-request ${AWS_URL}/FV3_fix_tiled/C96 .

# input data
DES_DIR=${INPUTDATA_ROOT}/FV3_input_data/INPUT
DES_DIR=${INPUTDATA_ROOT}/FV3_fix_tiled/C96
[[ ! -d ${DES_DIR} ]] && mkdir -p ${DES_DIR}
echo ${DES_DIR}
cd $DES_DIR
aws s3 cp --no-sign-request ${SRC_DIR}/FV3_input_data/INPUT/C96_grid.tile1.nc .
aws s3 cp --no-sign-request ${SRC_DIR}/FV3_input_data/INPUT/C96_grid.tile2.nc .
aws s3 cp --no-sign-request ${SRC_DIR}/FV3_input_data/INPUT/C96_grid.tile3.nc .
aws s3 cp --no-sign-request ${SRC_DIR}/FV3_input_data/INPUT/C96_grid.tile4.nc .
aws s3 cp --no-sign-request ${SRC_DIR}/FV3_input_data/INPUT/C96_grid.tile5.nc .
aws s3 cp --no-sign-request ${SRC_DIR}/FV3_input_data/INPUT/C96_grid.tile6.nc .
aws s3 cp --no-sign-request ${SRC_DIR}/FV3_input_data/INPUT/grid_spec.nc .
aws s3 cp --no-sign-request ${SRC_DIR}/FV3_fix_tiled/C96/C96_grid.tile1.nc .
aws s3 cp --no-sign-request ${SRC_DIR}/FV3_fix_tiled/C96/C96_grid.tile2.nc .
aws s3 cp --no-sign-request ${SRC_DIR}/FV3_fix_tiled/C96/C96_grid.tile3.nc .
aws s3 cp --no-sign-request ${SRC_DIR}/FV3_fix_tiled/C96/C96_grid.tile4.nc .
aws s3 cp --no-sign-request ${SRC_DIR}/FV3_fix_tiled/C96/C96_grid.tile5.nc .
aws s3 cp --no-sign-request ${SRC_DIR}/FV3_fix_tiled/C96/C96_grid.tile6.nc .
aws s3 cp --no-sign-request ${SRC_DIR}/FV3_fix_tiled/C96/grid_spec.nc .
cd ${project_source_dir}

# NOAHMP ICs
Expand Down
10 changes: 9 additions & 1 deletion sorc/test/run_ufs_datm_lnd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,15 @@ MACHINE_ID=${MACHINE_ID:-hera}
TEST_NAME=datm_cdeps_lnd_gswp3
PATHRT=${project_source_dir}/ufs_model.fd/tests
FIXdir=${project_source_dir}/../fix
INPUTDATA_ROOT=${FIXdir}/UFS_WM
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"
source ${PATHRT}/detect_machine.sh
Expand Down

0 comments on commit ec53616

Please sign in to comment.