default_hook#

class DefaultHooks[source]#

Bases: Hooks

Hook added to every controller, recording the residuals and the number of iterations of each step.

The residual is the one the convergence check reads, computed once per iteration after the new initial value has come in. The residual after each sweep is not computed by default; add LogResidualPostSweep to get it.

post_iteration(step, level_number)[source]#

Default routine called after each iteration

Parameters:
  • step (pySDC.Step.step) – the current step

  • level_number (int) – the current level number

post_step(step, level_number)[source]#

Default routine called after each step or block

Parameters:
  • step (pySDC.Step.step) – the current step

  • level_number (int) – the current level number