Skip to content

Commit

Permalink
Merge pull request #798 from xylar/only-write-tmix-wisc
Browse files Browse the repository at this point in the history
Only make tidal mixing files for meshes with cavities
  • Loading branch information
xylar authored Mar 19, 2024
2 parents 336e65d + 20ecf00 commit 1199665
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,22 @@ def __init__(self, test_case):
target='ustar_CATS2008_S71W70.nc',
database='tidal_mixing')

self.add_output_file(filename='velocityTidalRMS_CATS2008.nc')
def setup(self):
"""
setup input and output files based on config options
"""
super().setup()
if self.with_ice_shelf_cavities:
self.add_output_file(filename='velocityTidalRMS_CATS2008.nc')

def run(self):
"""
Run this step of the test case
"""
super().run()
if not self.with_ice_shelf_cavities:
return

logger = self.logger
config = self.config
ntasks = self.ntasks
Expand Down

0 comments on commit 1199665

Please sign in to comment.