polaris.tasks.ocean.realistic_global.init.steps.get_realistic_init_steps

polaris.tasks.ocean.realistic_global.init.steps.get_realistic_init_steps(component, mesh_name, include_viz=False, model='mpas-ocean')[source]

Get shared steps for the realistic global ocean initialization workflow for one MPAS mesh.

Composes the full dependency chain:

InitialStateStep, ForcingStep and VizInitStep write or read files in one model’s format, so they are model-dependent: they live under init/<model>/ with a copy of init.cfg of their own, and their [ocean] model must be model. The other steps are model-neutral and are shared by both models’ chains. See polaris.tasks.ocean.realistic_global.models.

The Omega-only shortwave extinction steps are added only when model is 'omega'.

All new steps are created via polaris.Component.get_or_create_shared_step() so that they are reused if the same mesh name appears in multiple tasks.

Parameters:
  • component (polaris.tasks.ocean.Ocean) – The ocean component the steps belong to.

  • mesh_name (str) – The name of the MPAS mesh (e.g. 'icos240km').

  • include_viz (bool, optional) – Whether to include the (shared) VizInitStep in the returned steps. The step is always created as a shared component step so it is part of the workflow, but it is only added to the returned dict (and therefore to a task’s steps_to_run) when this is True. The standalone RealisticGlobalInit task passes include_viz=True; other consumers that reuse the init outputs as dependencies leave it False so the plots are not regenerated.

  • model (str, optional) – The ocean model to build the model-dependent steps for.

Returns:

  • steps (dict of {str: polaris.Step}) – All steps keyed by their suggested symlink names.

  • config (polaris.config.PolarisConfigParser) – Per-mesh shared config for the model-neutral init steps.