compass.ocean.tests.global_ocean.init.Init¶
- class compass.ocean.tests.global_ocean.init.Init(test_group, mesh, initial_condition, with_bgc)[source]¶
A test case for creating initial conditions on a global MPAS-Ocean mesh
- Variables
mesh (compass.ocean.tests.global_ocean.mesh.Mesh) – The test case that creates the mesh used by this test case
initial_condition ({'PHC', 'EN4_1900'}) – The initial condition dataset to use
with_bgc (bool) – Whether to include biogeochemistry (BGC) in the initial condition
init_subdir (str) – The subdirectory within the test group for all test cases with this initial condition
- __init__(test_group, mesh, initial_condition, with_bgc)[source]¶
Create the test case
- Parameters
test_group (compass.ocean.tests.global_ocean.GlobalOcean) – The global ocean test group that this test case belongs to
mesh (compass.ocean.tests.global_ocean.mesh.Mesh) – The test case that creates the mesh used by this test case
initial_condition ({'PHC', 'EN4_1900'}) – The initial condition dataset to use
with_bgc (bool) – Whether to include biogeochemistry (BGC) in the initial condition
Methods
__init__
(test_group, mesh, ...)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.
Modify the configuration options for this test case
run
()Run each step of the testcase
validate
()Test cases can override this method to perform validation of variables and timers