Skip to content

Commit

Permalink
Merge remote-tracking branch 'emc/develop' into feature/parallel_builds
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHuber-NOAA committed Oct 31, 2023
2 parents 7f3f3ee + 7086ddc commit 1a6d6ee
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 6 deletions.
1 change: 1 addition & 0 deletions jobs/JGLOBAL_ARCHIVE
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_ANALYSIS COM_ATMOS_BUFR COM_ATMO
COM_ICE_HISTORY COM_ICE_INPUT COM_ICE_RESTART \
COM_OBS COM_TOP \
COM_OCEAN_HISTORY COM_OCEAN_INPUT COM_OCEAN_RESTART COM_OCEAN_XSECT COM_OCEAN_2D COM_OCEAN_3D \
COM_OCEAN_ANALYSIS \
COM_WAVE_GRID COM_WAVE_HISTORY COM_WAVE_STATION

for grid in "0p25" "0p50" "1p00"; do
Expand Down
4 changes: 2 additions & 2 deletions jobs/JGLOBAL_FORECAST
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ fi
if [[ ${DO_OCN} == "YES" ]]; then
YMD=${PDY} HH=${cyc} generate_com -rx COM_MED_RESTART COM_OCEAN_RESTART COM_OCEAN_INPUT \
COM_OCEAN_HISTORY COM_OCEAN_ANALYSIS
RUN=${CDUMP} YMD="${gPDY}" HH="${gcyc}" generate_com -rx \
RUN=${rCDUMP} YMD="${gPDY}" HH="${gcyc}" generate_com -rx \
COM_OCEAN_RESTART_PREV:COM_OCEAN_RESTART_TMPL
fi

if [[ ${DO_ICE} == "YES" ]]; then
YMD=${PDY} HH=${cyc} generate_com -rx COM_ICE_HISTORY COM_ICE_INPUT COM_ICE_RESTART
RUN=${CDUMP} YMD="${gPDY}" HH="${gcyc}" generate_com -rx \
RUN=${rCDUMP} YMD="${gPDY}" HH="${gcyc}" generate_com -rx \
COM_ICE_RESTART_PREV:COM_ICE_RESTART_TMPL
fi

Expand Down
4 changes: 4 additions & 0 deletions jobs/JGLOBAL_STAGE_IC
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
source "${HOMEgfs}/ush/preamble.sh"
source "${HOMEgfs}/ush/jjob_header.sh" -e "stage_ic" -c "base stage_ic"

# Restart conditions for GFS cycle come from GDAS
# shellcheck disable=SC2153
rCDUMP=${CDUMP}
[[ ${CDUMP} = "gfs" ]] && export rCDUMP="gdas"

# Execute the Script
"${HOMEgfs}/scripts/exglobal_stage_ic.sh"
Expand Down
2 changes: 1 addition & 1 deletion scripts/exglobal_archive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ if [[ ${HPSSARCH} = "YES" || ${LOCALARCH} = "YES" ]]; then

#gdasocean
if [ "${DO_OCN}" = "YES" ]; then
targrp_list="${targrp_list} gdasocean"
targrp_list="${targrp_list} gdasocean gdasocean_analysis"
fi

#gdasice
Expand Down
4 changes: 2 additions & 2 deletions scripts/exglobal_stage_ic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ for MEMDIR in "${MEMDIR_ARRAY[@]}"; do

# Stage ocean initial conditions to ROTDIR (warm start)
if [[ "${DO_OCN:-}" = "YES" ]]; then
YMD=${gPDY} HH=${gcyc} generate_com COM_OCEAN_RESTART
RUN=${rCDUMP} YMD=${gPDY} HH=${gcyc} generate_com COM_OCEAN_RESTART
[[ ! -d "${COM_OCEAN_RESTART}" ]] && mkdir -p "${COM_OCEAN_RESTART}"
src="${BASE_CPLIC}/${CPL_OCNIC}/${PDY}${cyc}/${MEMDIR}/ocean/${PDY}.${cyc}0000.MOM.res.nc"
tgt="${COM_OCEAN_RESTART}/${PDY}.${cyc}0000.MOM.res.nc"
Expand All @@ -63,7 +63,7 @@ for MEMDIR in "${MEMDIR_ARRAY[@]}"; do
fi
# Stage ice initial conditions to ROTDIR (warm start)
if [[ "${DO_ICE:-}" = "YES" ]]; then
YMD=${gPDY} HH=${gcyc} generate_com COM_ICE_RESTART
RUN=${rCDUMP} YMD=${gPDY} HH=${gcyc} generate_com COM_ICE_RESTART
[[ ! -d "${COM_ICE_RESTART}" ]] && mkdir -p "${COM_ICE_RESTART}"
src="${BASE_CPLIC}/${CPL_ICEIC}/${PDY}${cyc}/${MEMDIR}/ice/${PDY}.${cyc}0000.cice_model.res.nc"
tgt="${COM_ICE_RESTART}/${PDY}.${cyc}0000.cice_model.res.nc"
Expand Down
9 changes: 9 additions & 0 deletions ush/hpssarch_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,8 @@ if [[ ${type} == "gdas" ]]; then
touch gdasocean.txt
rm -rf gdasocean_restart.txt
touch gdasocean_restart.txt
rm -rf gdasocean_analysis.txt
touch gdasocean_analysis.txt

head="gdas.t${cyc}z."

Expand All @@ -468,6 +470,13 @@ if [[ ${type} == "gdas" ]]; then
echo "${COM_MED_RESTART/${ROTDIR}\//}/*"
} >> gdasocean_restart.txt

{
echo "${COM_OCEAN_ANALYSIS/${ROTDIR}\//}/${head}*"
echo "${COM_OCEAN_ANALYSIS/${ROTDIR}\//}/gdas.t??z.ocngrid.nc"
echo "${COM_OCEAN_ANALYSIS/${ROTDIR}\//}/diags"
echo "${COM_OCEAN_ANALYSIS/${ROTDIR}\//}/yaml"
} >> gdasocean_analysis.txt

fi

if [[ ${DO_ICE} = "YES" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion workflow/rocoto/gfs_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def landanl(self):

def ocnanalprep(self):

ocean_hist_path = self._template_to_rocoto_cycstring(self._base["COM_OCEAN_HISTORY_TMPL"])
ocean_hist_path = self._template_to_rocoto_cycstring(self._base["COM_OCEAN_HISTORY_TMPL"], {'RUN': 'gdas'})

deps = []
data = f'{ocean_hist_path}/[email protected]'
Expand Down

0 comments on commit 1a6d6ee

Please sign in to comment.