Skip to content

Commit 736e895

Browse files
committed
Add inactive top cells description
1 parent b2a3794 commit 736e895

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

compass/ocean/tests/global_ocean/configure.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ def configure_global_ocean(test_case, mesh, init=None):
4545
config.set('global_ocean', 'bgc_description',
4646
'<<<Missing>>>')
4747

48+
if init is not None and init.with_inactive_top_cells:
49+
config.set('global_ocean', 'inactive_top_cells_description',
50+
'Number of vertical layers is increased by 1 to test '
51+
'whether solution is the same when one inactive layer '
52+
'added at the top (minLevelCell=2)')
53+
4854
if mesh.with_ice_shelf_cavities:
4955
config.set('global_ocean', 'wisc_description',
5056
'Includes cavities under the ice shelves around Antarctica')

compass/ocean/tests/global_ocean/metadata.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def _get_metadata(dsInit, config):
122122

123123
descriptions = dict()
124124

125-
for prefix in ['mesh', 'init', 'bathy', 'bgc', 'wisc']:
125+
for prefix in ['mesh', 'init', 'bathy', 'bgc', 'wisc', 'inactive_top_cells']:
126126
option = '{}_description'.format(prefix)
127127
if config.has_option('global_ocean', option):
128128
description = config.get('global_ocean', option)
@@ -155,6 +155,9 @@ def _get_metadata(dsInit, config):
155155
if 'bgc' in descriptions:
156156
metadata['MPAS_Mesh_Biogeochemistry'] = descriptions['bgc']
157157

158+
if 'inactive_top_cells' in descriptions:
159+
metadata['MPAS_Mesh_Inactive_Top_Cells'] = descriptions['inactive_top_cells']
160+
158161
packages = {'compass': 'compass', 'JIGSAW': 'jigsaw',
159162
'JIGSAW-Python': 'jigsawpy', 'MPAS-Tools': 'mpas_tools',
160163
'NCO': 'nco', 'ESMF': 'esmf',

0 commit comments

Comments
 (0)