Skip to content

Commit 5e06ae8

Browse files
committed
Increase nVertLevels for inactive top layers
1 parent 736e895 commit 5e06ae8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compass/ocean/tests/global_ocean/configure.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ def configure_global_ocean(test_case, mesh, init=None):
2525
config.set('global_ocean', 'prefix', '{}wISC'.format(
2626
config.get('global_ocean', 'prefix')))
2727

28+
if init is not None and init.with_inactive_top_cells:
29+
config.set('vertical_grid', 'vert_levels', '{}'.format(
30+
config.getint('vertical_grid', 'vert_levels')+1))
31+
2832
# add a description of the initial condition
2933
if init is not None:
3034
initial_condition = init.initial_condition

0 commit comments

Comments
 (0)