Skip to content

Commit 1199665

Browse files
authored
Merge pull request #798 from xylar/only-write-tmix-wisc
Only make tidal mixing files for meshes with cavities
2 parents 336e65d + 20ecf00 commit 1199665

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

compass/ocean/tests/global_ocean/files_for_e3sm/remap_tidal_mixing.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,22 @@ def __init__(self, test_case):
3434
target='ustar_CATS2008_S71W70.nc',
3535
database='tidal_mixing')
3636

37-
self.add_output_file(filename='velocityTidalRMS_CATS2008.nc')
37+
def setup(self):
38+
"""
39+
setup input and output files based on config options
40+
"""
41+
super().setup()
42+
if self.with_ice_shelf_cavities:
43+
self.add_output_file(filename='velocityTidalRMS_CATS2008.nc')
3844

3945
def run(self):
4046
"""
4147
Run this step of the test case
4248
"""
4349
super().run()
50+
if not self.with_ice_shelf_cavities:
51+
return
52+
4453
logger = self.logger
4554
config = self.config
4655
ntasks = self.ntasks

0 commit comments

Comments
 (0)