Skip to content

Commit

Permalink
Moves UFS WM configuration files to COM_CONF (NOAA-EMC#2054)
Browse files Browse the repository at this point in the history
The UFS weather-model (WM) files are place in the COM_CONF path rather than the respective component model COM history paths.
Resolves NOAA-EMC#2015
  • Loading branch information
HenryRWinterbottom authored Nov 14, 2023
1 parent 6f16930 commit 2cd6a58
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_FORECAST
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ declare -rx gcyc="${GDATE:8:2}"

# Construct COM variables from templates (see config.com)
YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_RESTART COM_ATMOS_INPUT COM_ATMOS_ANALYSIS \
COM_ATMOS_HISTORY COM_ATMOS_MASTER COM_TOP
COM_ATMOS_HISTORY COM_ATMOS_MASTER COM_TOP COM_CONF

RUN=${rCDUMP} YMD="${gPDY}" HH="${gcyc}" generate_com -rx \
COM_ATMOS_RESTART_PREV:COM_ATMOS_RESTART_TMPL
Expand Down
2 changes: 1 addition & 1 deletion scripts/exgdas_enkf_fcst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ for imem in $(seq "${ENSBEG}" "${ENSEND}"); do
# Construct COM variables from templates (see config.com)
# Can't make these read-only because we are looping over members
MEMDIR="${memchar}" YMD=${PDY} HH=${cyc} generate_com -x COM_ATMOS_RESTART COM_ATMOS_INPUT COM_ATMOS_ANALYSIS \
COM_ATMOS_HISTORY COM_ATMOS_MASTER
COM_ATMOS_HISTORY COM_ATMOS_MASTER COM_CONF

MEMDIR="${memchar}" YMD="${gPDY}" HH="${gcyc}" generate_com -x COM_ATMOS_RESTART_PREV:COM_ATMOS_RESTART_TMPL

Expand Down
9 changes: 6 additions & 3 deletions ush/forecast_postdet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,10 @@ FV3_out() {
done
else
# No need to copy FV3 restart files when RUN=gfs or gefs
${NCP} "${DATA}/input.nml" "${COM_ATMOS_HISTORY}/input.nml"
${NCP} "${DATA}/input.nml" "${COM_CONF}/ufs.input.nml"
${NCP} "${DATA}/model_configure" "${COM_CONF}/ufs.model_configure"
${NCP} "${DATA}/nems.configure" "${COM_CONF}/ufs.nems.configure"
${NCP} "${DATA}/diag_table" "${COM_CONF}/ufs.diag_table"
fi
echo "SUB ${FUNCNAME[0]}: Output data for FV3 copied"
}
Expand Down Expand Up @@ -853,7 +856,7 @@ MOM6_out() {

# Copy MOM_input from DATA to COM_OCEAN_INPUT after the forecast is run (and successfull)
if [[ ! -d ${COM_OCEAN_INPUT} ]]; then mkdir -p "${COM_OCEAN_INPUT}"; fi
${NCP} "${DATA}/INPUT/MOM_input" "${COM_OCEAN_INPUT}/"
${NCP} "${DATA}/INPUT/MOM_input" "${COM_CONF}/ufs.MOM_input"

# TODO: mediator should have its own CMEPS_out() function
# Copy mediator restarts from DATA to COM
Expand Down Expand Up @@ -991,7 +994,7 @@ CICE_out() {

# Copy ice_in namelist from DATA to COMOUTice after the forecast is run (and successfull)
if [[ ! -d "${COM_ICE_INPUT}" ]]; then mkdir -p "${COM_ICE_INPUT}"; fi
${NCP} "${DATA}/ice_in" "${COM_ICE_INPUT}/ice_in"
${NCP} "${DATA}/ice_in" "${COM_CONF}/ufs.ice_in"
}

GOCART_rc() {
Expand Down
2 changes: 1 addition & 1 deletion ush/forecast_predet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ common_predet(){
tcyc=${scyc}
fi


mkdir -p "${COM_CONF}"
cd "${DATA}" || ( echo "FATAL ERROR: Unable to 'cd ${DATA}', ABORT!"; exit 8 )
}

Expand Down

0 comments on commit 2cd6a58

Please sign in to comment.