Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix for dam break tests #451

Merged
merged 3 commits into from
Dec 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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