implementations.convergence_controller_classes.store_uold module

class StoreUOld(controller, params, description, **kwargs)[source]

Bases: ConvergenceController

Class to store the solution of the last iteration in a variable called ‘uold’ of the levels.

Default control order is 90.

post_iteration_processing(controller, S, **kwargs)[source]

Store the solution at the current iteration

Parameters:
  • controller (pySDC.Controller) – The controller

  • S (pySDC.Step) – The current step

Returns:

None

post_spread_processing(controller, S, **kwargs)[source]

Store the initial conditions in u_old in the spread phase.

Parameters:
  • controller (pySDC.Controller) – The controller

  • S (pySDC.Step) – The current step

Returns:

None

setup(controller, params, description, **kwargs)[source]

Define parameters here

Parameters:
  • controller (pySDC.Controller) – The controller

  • params (dict) – The params passed for this specific convergence controller

  • description (dict) – The description object used to instantiate the controller

Returns:

The updated params dictionary

Return type:

(dict)