Skip to content

Commit

Permalink
Add echgres as a dependency only for RUN=enkfgdas, not enkfgfs (#3246)
Browse files Browse the repository at this point in the history
This PR:
- adds echgres as a dependency only for `RUN=enkfgdas`, not `enkfgfs`
Resolves #3244
  • Loading branch information
aerorahul authored Jan 21, 2025
1 parent a72edf4 commit 4ab8cf8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions workflow/rocoto/gfs_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2919,12 +2919,14 @@ def earc(self):
deps = []
if 'enkfgdas' in self.run:
dep_dict = {'type': 'metatask', 'name': f'{self.run}_epmn'}
else:
deps.append(rocoto.add_dependency(dep_dict))
dep_dict = {'type': 'task', 'name': f'{self.run}_echgres'}
deps.append(rocoto.add_dependency(dep_dict))
dependencies = rocoto.create_dependency(dep_condition='and', dep=deps)
else: # early cycle enkf run (enkfgfs)
dep_dict = {'type': 'task', 'name': f'{self.run}_esfc'}
deps.append(rocoto.add_dependency(dep_dict))
dep_dict = {'type': 'task', 'name': f'{self.run}_echgres'}
deps.append(rocoto.add_dependency(dep_dict))
dependencies = rocoto.create_dependency(dep_condition='and', dep=deps)
deps.append(rocoto.add_dependency(dep_dict))
dependencies = rocoto.create_dependency(dep=deps)

earcenvars = self.envars.copy()
earcenvars.append(rocoto.create_envar(name='ENSGRP', value='#grp#'))
Expand Down

0 comments on commit 4ab8cf8

Please sign in to comment.