thwaites

The thwaites test group (compass.landice.tests.thwaites.Thwaites) performs short (5-day) forward runs on a coarse (4-14 km) thwaites mesh (see thwaites). Here, we describe the shared framework for this test group and the 2 test cases.

framework

There are no shared config options for the thwaites test group.

The Thwaites test can only be run with the FO velocity solver. Running with the FO solver requires building MALI with the Albany library.

The test group has a shared namelist.landice file with a few common namelist options related to time step, run duration and calving, and a shared streams.landice file that defines input, restart, and output streams.

run_model

The class compass.landice.tests.thwaites.run_model.RunModel defines a step for running MALI an initial condition downloaded from thwaites.4km.210608.nc. For the restart_test test cases, the model will run multiple times with different namelist and streams files. To support this functionality, this step has an attribute suffixes, which is a list of suffixes for the these namelist and streams files. The model runs once for each suffix. The default is just landice.

decomposition_test

The compass.landice.tests.thwaites.decomposition_test.DecompositionTest performs a 5-day run once on 1 core and once on 4 cores. It ensures that thickness and surfaceSpeed are identical at the end of the two runs (as well as with a baseline if one is provided when calling compass setup).

restart_test

The compass.landice.tests.thwaites.restart_test.RestartTest performs a 5-day run once on 4 cores, then a sequence of a 3-day and a 2-day run on 4 cores. It ensures that thickness and surfaceSpeed are identical at the end of the two runs (as well as with a baseline if one is provided when calling compass setup).

The restart step works by creating two different namelist and streams files, one each with landice as the suffix and one each with landice.rst as the suffix. The former perform a 3-day run from the initial condition, while the latter perform a 2-day restart run beginning with the end of the first.

mesh

The class compass.landice.tests.thwaites.mesh.Mesh defines a step for creating a variable resolution Thwaites Glacier mesh. This is used by the mesh_gen test case.

mesh_gen

The compass.landice.tests.thwaites.mesh_gen.MeshGen calls the compass.landice.tests.thwaites.mesh.Mesh to create the variable resolution Thwaites Glacier mesh.