Source code for compass.landice.tests.humboldt.mesh_gen

from compass.landice.tests.humboldt.mesh import Mesh
from compass.testcase import TestCase
from compass.validate import compare_variables

[docs] class MeshGen(TestCase): """ The MeshGen test case for the humboldt test group simply creates the mesh and initial condition. """
[docs] def __init__(self, test_group): """ Create the test case Parameters ---------- test_group : compass.landice.tests.humboldt.Humboldt The test group that this test case belongs to """ name = 'mesh_gen' subdir = name super().__init__(test_group=test_group, name=name, subdir=subdir) self.add_step( Mesh(test_case=self))
def validate(self): """ Compare ``thickness``, ``bedTopography``, ``iceMask`` and ``beta`` with a baseline if one was provided. """ variables = ['thickness', 'bedTopography', 'iceMask', 'beta'] compare_variables(test_case=self, variables=variables, filename1='mesh/')