Skip to content

Commit

Permalink
move job defining variable location
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisElless-NOAA committed Jan 29, 2025
1 parent 7b63be4 commit 2492502
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions jobs/JGLOBAL_SNOWENS_ANALYSIS
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ export GDUMP
CDUMP=${RUN/enkf}
export CDUMP

export NMEM_ENS_MAX=${NMEM_ENS:-80}
if [ "${RUN}" = "enkfgfs" ]; then
NMEM_ENS=${NMEM_ENS_GFS:-30}
ec_offset=${NMEM_ENS_GFS_OFFSET:-20}
export mem_offset=$((ec_offset * cyc/6))
else
NMEM_ENS=${NMEM_ENS:-80}
export mem_offset=0
fi
##############################################
# Begin JOB SPECIFIC work
##############################################
Expand All @@ -23,15 +32,6 @@ YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMOUT_ATMOS_ANALYSIS:COM_ATMOS_ANALYSIS_TMPL \
COMOUT_CONF:COM_CONF_TMPL

export NMEM_ENS_MAX=${NMEM_ENS:-80}
if [ "${RUN}" = "enkfgfs" ]; then
NMEM_ENS=${NMEM_ENS_GFS:-30}
ec_offset=${NMEM_ENS_GFS_OFFSET:-20}
export mem_offset=$((ec_offset * cyc/6))
else
NMEM_ENS=${NMEM_ENS:-80}
export mem_offset=0
fi
for imem in $(seq 1 "${NMEM_ENS}"); do
memchar="mem$(printf %03i "${imem}")"
MEMDIR=${memchar} YMD=${PDY} HH=${cyc} declare_from_tmpl \
Expand Down

0 comments on commit 2492502

Please sign in to comment.