Skip to content

Commit

Permalink
correctly set cycledefs for gfs atmanlinit (NOAA-EMC#1313)
Browse files Browse the repository at this point in the history
  • Loading branch information
RussTreadon-NOAA committed Apr 20, 2023
1 parent 9ad17f4 commit ddfc811
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion workflow/rocoto/workflow_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ def analdiag(self):
return task

def atmanlinit(self):

deps = []
dep_dict = {'type': 'task', 'name': f'{self.cdump}prep'}
deps.append(rocoto.add_dependency(dep_dict))
Expand All @@ -407,7 +408,13 @@ def atmanlinit(self):
else:
dependencies = rocoto.create_dependency(dep=deps)

cycledef = "gdas"
gfs_cyc = self._base["gfs_cyc"]
gfs_enkf = True if self.app_config.do_hybvar and 'gfs' in self.app_config.eupd_cdumps else False

cycledef = self.cdump
if self.cdump in ['gfs'] and gfs_enkf and gfs_cyc != 4:
cycledef = 'gdas'

resources = self.get_resource('atmanlinit')
task = create_wf_task('atmanlinit', resources, cdump=self.cdump, envar=self.envars, dependency=dependencies,
cycledef=cycledef)
Expand Down

0 comments on commit ddfc811

Please sign in to comment.