polaris.tasks.ocean.realistic_global.dynamic_adjustment.task.RealisticGlobalDynamicAdjustment
- class polaris.tasks.ocean.realistic_global.dynamic_adjustment.task.RealisticGlobalDynamicAdjustment(component, mesh_name)[source]
A staged dynamic-adjustment run of the configured ocean model for a realistic global ocean simulation on one MPAS mesh.
The steps themselves are shared component steps built by
get_realistic_dynamic_adjustment_steps(), so a downstream workflow that wants the adjusted restart gets the same instances rather than a second copy of the chain. This task is the standalone way to run them, and the only consumer that also wants thevizfigure.The stages are built once at construction from the built-in schedule (so
polaris listshows a representative set) and rebuilt inconfigureif a user’s setup-time config changed the schedule. The number of stages is therefore fixed at setup time, not run time.- Variables:
mesh_name (str) – The name of the MPAS mesh.
stages (list of ForwardStage) – The stages of the adjustment, in schedule order.
- __init__(component, mesh_name)[source]
Create the task.
- Parameters:
component (polaris.tasks.ocean.Ocean) – The ocean component the task belongs to.
mesh_name (str) – The name of the MPAS mesh (e.g.
'icos240km').
Methods
__init__(component, mesh_name)Create the task.
add_step([step, subdir, symlink, run_by_default])Add a step to the task and component (if not already present)
Rebuild the stages if a user's setup-time config changed the schedule.
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