Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dev/scripts/exglobal_atmos_chgres_gen_control.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ cat << EOF > ./fort.41
/
EOF

${APRUN_CHGRES} "${HOMEglobal}/sorc/ufs_utils.fd/exec/chgres_cube"
${APRUN_CHGRES} "${EXECglobal}/chgres_cube"
export err=$?
if [[ ${err} -ne 0 ]]; then
err_exit "chgres_cube failed to create cold start ICs, ABORT!"
Expand Down
2 changes: 1 addition & 1 deletion modulefiles/gw_upp.wcoss2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Load environment to run the UPP on WCOSS2
]])

local homeglobal=os.getenv("HOMEglobal") or ""
prepend_path("MODULEPATH", pathJoin(homeglobal,"/sorc/ufs_model.fd/UFSATM/upp/modulefiles"))
prepend_path("MODULEPATH", pathJoin(homeglobal,"/modulefiles/upp"))
-- Load UPP modules
load("wcoss2_intel")

Expand Down
24 changes: 23 additions & 1 deletion sorc/link_workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ fi
#--copy/link NoahMp table form ccpp-physics repository
cd "${HOMEglobal}/parm/ufs" || exit 1
${LINK_OR_COPY} "${HOMEglobal}/sorc/ufs_model.fd/tests/parm/noahmptable.tbl" .
${LINK_OR_COPY} "${HOMEglobal}/sorc/ufs_model.fd/tests/parm/fd_ufs.yaml" .

cd "${HOMEglobal}/parm/post" || exit 1
${LINK_OR_COPY} "${HOMEglobal}/sorc/upp.fd/parm/params_grib2_tbl_new" .
Expand Down Expand Up @@ -215,13 +216,34 @@ for file in "${ufs_templates[@]}"; do
${LINK_OR_COPY} "${HOMEglobal}/sorc/ufs_model.fd/tests/parm/${file}" .
done

# Link the CCPP suite XML files from ufs-weather-model
if [[ -d "${HOMEglobal}/sorc/ufs_model.fd/UFSATM/ccpp/suites" ]]; then
for suite_file in "${HOMEglobal}/sorc/ufs_model.fd/UFSATM/ccpp/suites"/suite_*.xml; do
[[ -f "${suite_file}" ]] || continue
local_name=$(basename "${suite_file}")
if [[ -s "${local_name}" ]]; then
rm -f "${local_name}"
fi
${LINK_OR_COPY} "${suite_file}" .
done
fi

# Link the script from ufs-weather-model that parses the templates
cd "${HOMEglobal}/ush" || exit 1
if [[ -s "atparse.bash" ]]; then
rm -f "atparse.bash"
fi
${LINK_OR_COPY} "${HOMEglobal}/sorc/ufs_model.fd/tests/atparse.bash" .

# Link UPP modulefiles for module loading
cd "${HOMEglobal}/modulefiles" || exit 1
if [[ -d "${HOMEglobal}/sorc/ufs_model.fd/UFSATM/upp/modulefiles" ]]; then
if [[ -d "upp" ]]; then
rm -rf "upp"
fi
${LINK_OR_COPY} "${HOMEglobal}/sorc/ufs_model.fd/UFSATM/upp/modulefiles" upp
fi

# add ufs_utils parm dir
if [[ -d "${HOMEglobal}/sorc/ufs_utils.fd" ]]; then
cd "${HOMEglobal}/parm" || exit 1
Expand Down Expand Up @@ -413,7 +435,7 @@ if [[ -s "upp.x" ]]; then
fi
${LINK_OR_COPY} "${HOMEglobal}/sorc/upp.fd/exec/upp.x" .

for ufs_utilsexe in emcsfc_ice_blend emcsfc_snow2mdl global_cycle fregrid regridStates.x; do
for ufs_utilsexe in chgres_cube emcsfc_ice_blend emcsfc_snow2mdl global_cycle fregrid regridStates.x; do
if [[ -s "${ufs_utilsexe}" ]]; then
rm -f "${ufs_utilsexe}"
fi
Expand Down
2 changes: 1 addition & 1 deletion ush/forecast_predet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ FV3_predet() {
# <0 means older adiabatic pre-conditioning
na_init=${na_init:-1}

local suite_file="${HOMEglobal}/sorc/ufs_model.fd/UFSATM/ccpp/suites/suite_${CCPP_SUITE}.xml"
local suite_file="${HOMEglobal}/parm/ufs/suite_${CCPP_SUITE}.xml"
if [[ ! -f "${suite_file}" ]]; then
echo "FATAL ERROR: CCPP Suite file ${suite_file} does not exist, ABORT!"
exit 2
Expand Down
2 changes: 1 addition & 1 deletion ush/parsing_ufs_configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ UFS_configure() {
echo "Rendered ufs.configure:"
cat ufs.configure

cpreq "${HOMEglobal}/sorc/ufs_model.fd/tests/parm/fd_ufs.yaml" fd_ufs.yaml
cpreq "${HOMEglobal}/parm/ufs/fd_ufs.yaml" fd_ufs.yaml

echo "SUB ${FUNCNAME[0]}: ufs.configure ends"

Expand Down
Loading