Source code for compass.ocean.tests.soma

from compass.testgroup import TestGroup
from compass.ocean.tests.soma.soma_test_case import SomaTestCase


[docs] class Soma(TestGroup): """ A test group for Simulating Ocean Mesoscale Activity (SOMA) test cases """
[docs] def __init__(self, mpas_core): """ mpas_core : compass.MpasCore the MPAS core that this test group belongs to """ super().__init__(mpas_core=mpas_core, name='soma') for resolution in ['4km', '8km', '16km', '32km']: self.add_test_case( SomaTestCase(test_group=self, resolution=resolution, with_particles=False, with_surface_restoring=False, long=False, three_layer=False)) self.add_test_case( SomaTestCase(test_group=self, resolution=resolution, with_particles=False, with_surface_restoring=False, long=True, three_layer=False)) if resolution == '32km': self.add_test_case( SomaTestCase(test_group=self, resolution=resolution, with_particles=True, with_surface_restoring=False, long=False, three_layer=False)) self.add_test_case( SomaTestCase(test_group=self, resolution=resolution, with_particles=False, with_surface_restoring=True, long=False, three_layer=False)) self.add_test_case( SomaTestCase(test_group=self, resolution=resolution, with_particles=False, with_surface_restoring=False, long=False, three_layer=True))