From fce5f5f5e89df6af5dbfefa974ea72a9ea1ea072 Mon Sep 17 00:00:00 2001 From: Carolyn Begeman Date: Thu, 3 Nov 2022 08:37:49 -0500 Subject: [PATCH 1/3] Add validation to dam break test case --- compass/ocean/tests/dam_break/default/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/compass/ocean/tests/dam_break/default/__init__.py b/compass/ocean/tests/dam_break/default/__init__.py index 15a8f04dee..3f400a82f5 100644 --- a/compass/ocean/tests/dam_break/default/__init__.py +++ b/compass/ocean/tests/dam_break/default/__init__.py @@ -3,6 +3,7 @@ from compass.ocean.tests.dam_break.initial_state import InitialState from compass.ocean.tests.dam_break.forward import Forward from compass.ocean.tests.dam_break.viz import Viz +from compass.validate import compare_variables class Default(TestCase): @@ -67,3 +68,11 @@ def configure(self): 'mesh cells in the y direction') config.set('dam_break', 'dc', f'{dc}', comment='the distance ' 'between adjacent cell centers') + + def validate(self): + """ + Validate variables against a baseline + """ + variables = ['layerThickness', 'normalVelocity', 'ssh'] + compare_variables(test_case=self, variables=variables, + filename1=f'forward/output.nc') From bc21590fc84be219db8ba4fa138ec64dd4c31cd6 Mon Sep 17 00:00:00 2001 From: Carolyn Begeman Date: Fri, 4 Nov 2022 15:50:27 -0500 Subject: [PATCH 2/3] Add tracers to streams --- compass/ocean/tests/dam_break/streams.init | 1 + 1 file changed, 1 insertion(+) diff --git a/compass/ocean/tests/dam_break/streams.init b/compass/ocean/tests/dam_break/streams.init index 5279b8abdb..bd4b466e0e 100644 --- a/compass/ocean/tests/dam_break/streams.init +++ b/compass/ocean/tests/dam_break/streams.init @@ -10,6 +10,7 @@ filename_template="ocean.nc"> + From 1fbaf6784e1097816b35e17c336f7abee468fbdd Mon Sep 17 00:00:00 2001 From: Carolyn Begeman Date: Fri, 4 Nov 2022 15:50:41 -0500 Subject: [PATCH 3/3] Disable tracer tendencies --- compass/ocean/tests/dam_break/namelist.forward | 1 + 1 file changed, 1 insertion(+) diff --git a/compass/ocean/tests/dam_break/namelist.forward b/compass/ocean/tests/dam_break/namelist.forward index 6defd7cf7a..647c228b85 100644 --- a/compass/ocean/tests/dam_break/namelist.forward +++ b/compass/ocean/tests/dam_break/namelist.forward @@ -12,3 +12,4 @@ config_zero_drying_velocity=.true. config_drying_min_cell_height=1e-6 config_thickness_flux_type='upwind' config_vert_coord_movement='impermeable_interfaces' +config_disable_tr_all_tend = .true.