polaris.tasks.ocean.realistic_global.dynamic_adjustment.task.RealisticGlobalDynamicAdjustment.configure

RealisticGlobalDynamicAdjustment.configure()[source]

Rebuild the steps for the configured model, or for a changed schedule.

Nothing is rebuilt when neither has changed, which is the usual case for MPAS-Ocean.

For another model, the task swaps every model-dependent step, including the init chain’s, for that model’s. Its config is new and has none of the options setup gave this task’s config before configure(), such as the user’s, and the schedule is read from it here. So it starts from this task’s config, beneath its own options.

A schedule that has changed for the same model cannot simply be re-requested: the shared steps are keyed by work directory, so a stage whose name survived the change would come back carrying its old run duration and time step. The model’s adjustment steps are therefore dropped first, which polaris.Task.remove_step() carries through to the component once no task is left using them. The init chain stays: it does not depend on the schedule, and a consumer holding those step instances would be left with stale ones.