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 the viz figure.

The stages are built at construction from the built-in schedule, for DEFAULT_MODEL, so polaris list shows a representative set. configure rebuilds them if the configured model is another, or if 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.

  • model (str) – The ocean model the task’s steps are for.

  • 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)

configure()

Rebuild the steps for the configured model, or for a changed 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