Skip to content

Commit

Permalink
Update dependency on mom restarts for 1/4 degree in coupled_ic job (N…
Browse files Browse the repository at this point in the history
  • Loading branch information
aerorahul authored Jun 6, 2023
1 parent 72650dd commit 5c57509
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions workflow/rocoto/gfs_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5c57509

Please sign in to comment.