Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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
9 changes: 9 additions & 0 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
Comment thread Fixed
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
Comment thread
TravisElless-NOAA marked this conversation as resolved.
Outdated
##############################################
# Begin JOB SPECIFIC work
##############################################
Expand Down
8 changes: 6 additions & 2 deletions parm/gdas/snow_stage_ens_update.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@ copy:
# copy ensemble background files
######################################
{% for mem in range(1, NMEM_ENS + 1) %}
{% set gmem = mem+mem_offset %}
{% if gmem > NMEM_ENS_MAX %}
{% set gmem = gmem-NMEM_ENS_MAX %}
{% endif %}
# define variables
# Declare a dict of search and replace terms to run on each template
{% set tmpl_dict = {'${ROTDIR}':ROTDIR,
'${RUN}':RUN,
'${RUN}':"enkfgdas",
'${YMD}':previous_cycle | to_YMD,
'${HH}':previous_cycle | strftime("%H"),
'${MEMDIR}':"mem" + '%03d' % mem} %}
'${MEMDIR}':"mem" + '%03d' % gmem} %}

# copy coupler file
- ["{{ COM_ATMOS_RESTART_TMPL | replace_tmpl(tmpl_dict) }}/{{ current_cycle | to_fv3time }}.coupler.res", "{{ DATA }}/bkg/mem{{ '%03d' % mem }}/{{ current_cycle | to_fv3time }}.coupler.res"]
Expand Down
2 changes: 1 addition & 1 deletion workflow/applications/gfs_cycled.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ def get_task_names(self):
task_names[run] += ['eobs', 'eupd']
task_names[run].append('echgres') if 'gdas' in run else 0
task_names[run] += ['ediag'] if options['lobsdiag_forenkf'] else ['eomg']
task_names[run].append('esnowanl') if options['do_jedisnowda'] and 'gdas' in run else 0

task_names[run].append('esnowanl') if options['do_jedisnowda'] else 0
task_names[run].append('efcs') if 'gdas' in run else 0
task_names[run].append('epos') if 'gdas' in run else 0
task_names[run] += ['stage_ic', 'ecen', 'esfc', 'earc', 'cleanup']
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 @@ -619,7 +619,7 @@ def snowanl(self):
def esnowanl(self):

deps = []
dep_dict = {'type': 'metatask', 'name': f'{self.run}_epmn', 'offset': f"-{timedelta_to_HMS(self._base['interval_gdas'])}"}
dep_dict = {'type': 'metatask', 'name': 'enkfgdas_epmn', 'offset': f"-{timedelta_to_HMS(self._base['interval_gdas'])}"}
deps.append(rocoto.add_dependency(dep_dict))
dep_dict = {'type': 'task', 'name': f"{self.run.replace('enkf', '')}_prep"}
deps.append(rocoto.add_dependency(dep_dict))
Expand Down