Skip to content

Commit 8356cef

Browse files
authored
Merge pull request #235 from cbegeman/bugfix-partition-file-presence
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.
2 parents 002293c + 080ca01 commit 8356cef

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

polaris/ocean/tasks/cosine_bell/forward.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ def __init__(self, component, name, subdir, resolution, mesh, init):
3939
yaml_filename='forward.yaml',
4040
output_filename='output.nc',
4141
validate_vars=validate_vars,
42-
graph_target=f'{init.path}/graph.info')
42+
graph_target=f'{mesh.path}/graph.info')

polaris/ocean/tasks/geostrophic/forward.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ def __init__(self, component, name, subdir, resolution, mesh, init):
4242
yaml_filename='forward.yaml',
4343
output_filename='output.nc',
4444
validate_vars=validate_vars,
45-
graph_target=f'{init.path}/graph.info')
45+
graph_target=f'{mesh.path}/graph.info')

polaris/ocean/tasks/sphere_transport/forward.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ def __init__(self, component, name, subdir, resolution, base_mesh, init,
5353
output_filename='output.nc',
5454
validate_vars=validate_vars,
5555
options=namelist_options,
56-
graph_target=f'{init.path}/graph.info')
56+
graph_target=f'{base_mesh.path}/graph.info')

0 commit comments

Comments
 (0)