Skip to content

Commit

Permalink
Add validate step
Browse files Browse the repository at this point in the history
  • Loading branch information
cbegeman committed Jan 13, 2023
1 parent d5a1057 commit afacf4a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions compass/ocean/tests/overflow/default/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from compass.ocean.tests.overflow.initial_state import InitialState
from compass.ocean.tests.overflow.forward import Forward
from compass.ocean.tests import overflow
from compass.validate import compare_variables


class Default(TestCase):
Expand Down Expand Up @@ -34,3 +35,11 @@ def configure(self):
Modify the configuration options for this test case.
"""
overflow.configure(self.resolution, self.config)

def validate(self):
"""
Validate variables against a baseline
"""
compare_variables(test_case=self,
variables=['layerThickness', 'temperature'],
filename1='forward/output.nc')

0 comments on commit afacf4a

Please sign in to comment.