From 4ab8cf816d17a563d922ce8f1104c11c2fb9337f Mon Sep 17 00:00:00 2001 From: Rahul Mahajan Date: Tue, 21 Jan 2025 16:54:00 -0500 Subject: [PATCH] Add echgres as a dependency only for RUN=enkfgdas, not enkfgfs (#3246) This PR: - adds echgres as a dependency only for `RUN=enkfgdas`, not `enkfgfs` Resolves #3244 --- workflow/rocoto/gfs_tasks.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/workflow/rocoto/gfs_tasks.py b/workflow/rocoto/gfs_tasks.py index 768512ba39..08d260fe57 100644 --- a/workflow/rocoto/gfs_tasks.py +++ b/workflow/rocoto/gfs_tasks.py @@ -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#'))