Skip to content

Commit

Permalink
Merge pull request #235 from cbegeman/bugfix-partition-file-presence
Browse files Browse the repository at this point in the history
Fixup graph paths for cached inputs

This PR corrects a small bug introduced by #225. When inputs are cached, we need to point to the mesh step rather than the init step for the graph files. Doesn't hurt to point to the mesh step when inputs are not cached either.
  • Loading branch information
cbegeman authored Oct 10, 2024
2 parents 002293c + 080ca01 commit 8356cef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion polaris/ocean/tasks/cosine_bell/forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ def __init__(self, component, name, subdir, resolution, mesh, init):
yaml_filename='forward.yaml',
output_filename='output.nc',
validate_vars=validate_vars,
graph_target=f'{init.path}/graph.info')
graph_target=f'{mesh.path}/graph.info')
2 changes: 1 addition & 1 deletion polaris/ocean/tasks/geostrophic/forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ def __init__(self, component, name, subdir, resolution, mesh, init):
yaml_filename='forward.yaml',
output_filename='output.nc',
validate_vars=validate_vars,
graph_target=f'{init.path}/graph.info')
graph_target=f'{mesh.path}/graph.info')
2 changes: 1 addition & 1 deletion polaris/ocean/tasks/sphere_transport/forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ def __init__(self, component, name, subdir, resolution, base_mesh, init,
output_filename='output.nc',
validate_vars=validate_vars,
options=namelist_options,
graph_target=f'{init.path}/graph.info')
graph_target=f'{base_mesh.path}/graph.info')

0 comments on commit 8356cef

Please sign in to comment.