Skip to content

Commit 2a41fe5

Browse files
committed
Add inactive top cells as tests, not test group
1 parent 2a15e8f commit 2a41fe5

File tree

2 files changed

+18
-300
lines changed

2 files changed

+18
-300
lines changed

compass/ocean/tests/global_ocean/__init__.py

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,7 @@ def __init__(self, mpas_core):
5656
include_rk4=True,
5757
include_regression=True,
5858
include_phc=True,
59-
include_en4_1900=True)
60-
self._add_tests(mesh_names=['QU240', 'Icos240', 'QUwISC240'],
61-
DynamicAdjustment=QU240DynamicAdjustment,
62-
high_res_topography=False,
63-
include_rk4=True,
64-
include_regression=True,
65-
include_phc=True,
59+
include_en4_1900=True,
6660
with_inactive_top_cells=True)
6761

6862
# for other meshes, we do fewer tests
@@ -108,7 +102,7 @@ def _add_tests(self, mesh_names, DynamicAdjustment,
108102

109103
init_test = Init(test_group=self, mesh=mesh_test,
110104
initial_condition=default_ic,
111-
with_inactive_top_cells=with_inactive_top_cells)
105+
with_inactive_top_cells=False)
112106
self.add_test_case(init_test)
113107

114108
time_integrator = default_time_int
@@ -171,6 +165,21 @@ def _add_tests(self, mesh_names, DynamicAdjustment,
171165
test_group=self, mesh=mesh_test, init=init_test,
172166
time_integrator=time_integrator))
173167

168+
if with_inactive_top_cells:
169+
init_test = Init(test_group=self, mesh=mesh_test,
170+
initial_condition=default_ic,
171+
with_inactive_top_cells=True)
172+
self.add_test_case(init_test)
173+
self.add_test_case(
174+
PerformanceTest(
175+
test_group=self, mesh=mesh_test, init=init_test,
176+
time_integrator=default_time_int))
177+
if include_rk4:
178+
self.add_test_case(
179+
PerformanceTest(
180+
test_group=self, mesh=mesh_test, init=init_test,
181+
time_integrator='RK4'))
182+
174183
initial_conditions = []
175184
if include_phc:
176185
initial_conditions.append('PHC')
@@ -181,8 +190,7 @@ def _add_tests(self, mesh_names, DynamicAdjustment,
181190
# additional initial conditions (if any)
182191
time_integrator = default_time_int
183192
init_test = Init(test_group=self, mesh=mesh_test,
184-
initial_condition=initial_condition,
185-
with_inactive_top_cells=with_inactive_top_cells)
193+
initial_condition=initial_condition)
186194
self.add_test_case(init_test)
187195

188196
self.add_test_case(

compass/ocean/vertical/grid_1d.py

Lines changed: 0 additions & 290 deletions
This file was deleted.

0 commit comments

Comments
 (0)