polaris.ocean.tasks.cosine_bell.decomp.Decomp
- class polaris.ocean.tasks.cosine_bell.decomp.Decomp(component, config, icosahedral, refinement_factor, refinement, proc_counts)[source]
A cosine bell decomposition task, which makes sure the model produces identical results on different numbers of cores.
- __init__(component, config, icosahedral, refinement_factor, refinement, proc_counts)[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
icosahedral (bool) – Whether to use icosahedral, as opposed to less regular, JIGSAW meshes
refinement_factor (float) – The factor by which to scale space, time or both
refinement (str) – Refinement type. One of ‘space’, ‘time’ or ‘both’ indicating both space and time
proc_counts (list of int) – The number of processors to run each step on
Methods
__init__
(component, config, icosahedral, ...)Create the convergence test
add_step
([step, subdir, symlink, run_by_default])Add a step to the task and component (if not already present)
configure
()Modify the configuration options for this task.
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