From afacf4a5803258369c425359e074a709b28bfb12 Mon Sep 17 00:00:00 2001 From: Carolyn Begeman Date: Fri, 13 Jan 2023 17:30:18 -0600 Subject: [PATCH] Add validate step --- compass/ocean/tests/overflow/default/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/compass/ocean/tests/overflow/default/__init__.py b/compass/ocean/tests/overflow/default/__init__.py index 0270831431..72dec23a3f 100644 --- a/compass/ocean/tests/overflow/default/__init__.py +++ b/compass/ocean/tests/overflow/default/__init__.py @@ -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): @@ -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')