From 5c57509498af2e80534e4ecac3c1c972d02f1f73 Mon Sep 17 00:00:00 2001 From: Rahul Mahajan Date: Tue, 6 Jun 2023 18:44:16 -0400 Subject: [PATCH] Update dependency on mom restarts for 1/4 degree in coupled_ic job (#1665) --- workflow/rocoto/gfs_tasks.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/workflow/rocoto/gfs_tasks.py b/workflow/rocoto/gfs_tasks.py index e98ff2aba9..663d351001 100644 --- a/workflow/rocoto/gfs_tasks.py +++ b/workflow/rocoto/gfs_tasks.py @@ -43,10 +43,15 @@ def coupled_ic(self): if self.app_config.do_ocean: ocn_res = f"{self._base.get('OCNRES', '025'):03d}" prefix = f"{cpl_ic['BASE_CPLIC']}/{cpl_ic['CPL_OCNIC']}/@Y@m@d@H/ocn" - for res in ['res'] + [f'res_{res_index}' for res_index in range(1, 4)]: - data = f"{prefix}/{ocn_res}/MOM.{res}.nc" - dep_dict = {'type': 'data', 'data': data} - deps.append(rocoto.add_dependency(dep_dict)) + data = f"{prefix}/{ocn_res}/MOM.res.nc" + dep_dict = {'type': 'data', 'data': data} + deps.append(rocoto.add_dependency(dep_dict)) + if ocn_res in ['025']: + # 0.25 degree ocean model also has these additional restarts + for res in [f'res_{res_index}' for res_index in range(1, 4)]: + data = f"{prefix}/{ocn_res}/MOM.{res}.nc" + dep_dict = {'type': 'data', 'data': data} + deps.append(rocoto.add_dependency(dep_dict)) # Ice ICs if self.app_config.do_ice: