Skip to content

Commit

Permalink
Merge pull request #451 from cbegeman/bugfix-dam-break-tests
Browse files Browse the repository at this point in the history
Bugfix for dam break tests
  • Loading branch information
xylar authored Dec 13, 2022
2 parents 3128f75 + 1fbaf67 commit 04efa4c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions compass/ocean/tests/dam_break/default/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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')
1 change: 1 addition & 0 deletions compass/ocean/tests/dam_break/namelist.forward
Original file line number Diff line number Diff line change
Expand Up @@ -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.
1 change: 1 addition & 0 deletions compass/ocean/tests/dam_break/streams.init
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
filename_template="ocean.nc">

<stream name="input_init"/>
<var_struct name="tracers"/>
<var name="bottomDepth"/>
<var name="refZMid"/>
<var name="refBottomDepth"/>
Expand Down

0 comments on commit 04efa4c

Please sign in to comment.