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

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


[docs] class MeshGen(TestCase): """ The default test case for the Kangerlussuaq 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.kangerlussuaq.Kangerlussuaq 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/Kangerlussuaq.nc')