Skip to content

Commit b725704

Browse files
committed
bug fix to reading base and culled mesh paths from config file
1 parent acc78b6 commit b725704

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compass/ocean/tests/global_ocean/wave_mesh/base_mesh.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def setup(self):
3232
self.opts.init_file = 'init.msh'
3333

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

5050
# Set links to culled mesh
51-
if self.ocean_culled_mesh is not None:
51+
if self.ocean_culled_mesh is None:
5252
mesh_path = self.ocean_culled_mesh.steps['initial_state'].path
5353
ocean_culled_mesh_path = f'{mesh_path}/initial_state.nc'
5454
else:

0 commit comments

Comments
 (0)