From 080ca01080c6ea26b96863cf5b390f2728530027 Mon Sep 17 00:00:00 2001 From: Carolyn Begeman Date: Thu, 10 Oct 2024 10:04:42 -0500 Subject: [PATCH] Fixup graph paths for cached inputs --- polaris/ocean/tasks/cosine_bell/forward.py | 2 +- polaris/ocean/tasks/geostrophic/forward.py | 2 +- polaris/ocean/tasks/sphere_transport/forward.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/polaris/ocean/tasks/cosine_bell/forward.py b/polaris/ocean/tasks/cosine_bell/forward.py index a761408e0..19ae04ee0 100644 --- a/polaris/ocean/tasks/cosine_bell/forward.py +++ b/polaris/ocean/tasks/cosine_bell/forward.py @@ -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') diff --git a/polaris/ocean/tasks/geostrophic/forward.py b/polaris/ocean/tasks/geostrophic/forward.py index 15b45482a..1e788b468 100644 --- a/polaris/ocean/tasks/geostrophic/forward.py +++ b/polaris/ocean/tasks/geostrophic/forward.py @@ -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') diff --git a/polaris/ocean/tasks/sphere_transport/forward.py b/polaris/ocean/tasks/sphere_transport/forward.py index 96485b111..c795993af 100644 --- a/polaris/ocean/tasks/sphere_transport/forward.py +++ b/polaris/ocean/tasks/sphere_transport/forward.py @@ -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')