Skip to content

Commit

Permalink
bug fix to reading base and culled mesh paths from config file
Browse files Browse the repository at this point in the history
  • Loading branch information
erinethomas committed Sep 6, 2024
1 parent acc78b6 commit b725704
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compass/ocean/tests/global_ocean/wave_mesh/base_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def setup(self):
self.opts.init_file = 'init.msh'

# Set links to base mesh
if self.ocean_base_mesh is not None:
if self.ocean_base_mesh is None:
mesh_path = self.ocean_base_mesh.steps['base_mesh'].path
ocean_base_mesh_path = f'{mesh_path}/base_mesh.nc'
else:
Expand All @@ -48,7 +48,7 @@ def setup(self):
work_dir_target=ocean_base_mesh_path)

# Set links to culled mesh
if self.ocean_culled_mesh is not None:
if self.ocean_culled_mesh is None:
mesh_path = self.ocean_culled_mesh.steps['initial_state'].path
ocean_culled_mesh_path = f'{mesh_path}/initial_state.nc'
else:
Expand Down

0 comments on commit b725704

Please sign in to comment.