compass.landice.tests.humboldt.decomposition_test.DecompositionTest

class compass.landice.tests.humboldt.decomposition_test.DecompositionTest(test_group, velo_solver, calving_law, mesh_type, damage=None, face_melt=False, depth_integrated=False, hydro=False)[source]

A test case for performing two MALI runs of a humboldt setup, one with one core and one with four. The test case verifies that the results of the two runs are identical or close to identical. The FO velocity solver is not bit for bit across decompositions, so identical results are not expected when it is used.

Variables:
  • mesh_type (str) – The resolution or type of mesh of the test case

  • velo_solver (str) – The velocity solver used for the test case

  • calving_law (str) – The calving law used for the test case

  • damage (str) – The damage method used for the test case

  • face_melt (bool) – Whether to include face melting

  • depth_integrated (bool) – Whether the (FO) velocity model is depth integrated

  • hydro (bool) – Whether to include subglacial hydrology

  • proc_list (list) – The pair of processor count values to test over. Function of velocity solver.

__init__(test_group, velo_solver, calving_law, mesh_type, damage=None, face_melt=False, depth_integrated=False, hydro=False)[source]

Create the test case

Parameters:
  • test_group (compass.landice.tests.humboldt.Humboldt) – The test group that this test case belongs to

  • velo_solver ({'sia', 'FO'}) – The velocity solver to use for the test case

  • calving_law (str) – The calving law used for the test case

  • mesh_type ({'1km', '3km'}) – The resolution or type of mesh of the test case

  • damage (str) – The damage method used for the test case

  • face_melt (bool) – Whether to include face melting

  • depth_integrated (bool) – Whether the (FO) velocity model is depth integrated

  • hydro (bool) – Whether to include subglacial hydrology

Methods

__init__(test_group, velo_solver, ...[, ...])

Create the test case

add_step(step[, run_by_default])

Add a step to the test case

check_validation()

Check the test case's "validation" dictionary to see if validation failed.

configure()

Modify the configuration options for this test case.

run()

This method is deprecated.

validate()

Test cases can override this method to perform validation of variables and timers