polaris.ocean.tasks.cosine_bell.CosineBell
- class polaris.ocean.tasks.cosine_bell.CosineBell(component, config, prefix, include_viz, refinement='both')[source]
A convergence test for the advection of a cosine-bell tracer
- Variables:
refinement (str) – Refinement type. One of ‘space’, ‘time’ or ‘both’ indicating both space and time
prefix (str) – The prefix on the mesh name, step names and a subdirectory in the work directory indicating the mesh type (‘icos’: uniform or ‘qu’: less regular JIGSAW meshes)
include_viz (bool) – Include VizMap and Viz steps for each resolution
- __init__(component, config, prefix, include_viz, refinement='both')[source]
Create the convergence test
- Parameters:
component (polaris.ocean.Ocean) – The ocean component that this task belongs to
config (polaris.config.PolarisConfigParser) – A shared config parser
prefix (str) – The prefix on the mesh name, step names and a subdirectory in the work directory indicating the mesh type (‘icos’: uniform or ‘qu’: less regular JIGSAW meshes)
include_viz (bool) – Include VizMap and Viz steps for each resolution
refinement (str, optional) – Refinement type. One of ‘space’, ‘time’ or ‘both’ indicating both space and time
Methods
__init__
(component, config, prefix, include_viz)Create the convergence test
add_step
([step, subdir, symlink, run_by_default])Add a step to the task and component (if not already present)
Set config options for the test case
remove_step
(step)Remove the given step from this task and the component
set_shared_config
(config[, link])Replace the task's config parser with the shared config parser