implementations.convergence_controller_classes.inexactness module¶
- class NewtonInexactness(controller, params, description, **kwargs)[source]¶
Bases:
ConvergenceController
Gradually refine Newton tolerance based on SDC residual. Be aware that the problem needs a parameter called “newton_tol” which controls the tolerance for the Newton solver for this to work!
- dependencies(controller, description, **kwargs)[source]¶
Load the embedded error estimator if needed.
- Parameters:
controller (pySDC.Controller) – The controller
description (dict) – The description object used to instantiate the controller
- Returns:
None
- post_iteration_processing(controller, step, **kwargs)[source]¶
Change the Newton tolerance after every iteration.
- Parameters:
controller (pySDC.Controller.controller) – The controller
S (pySDC.Step) – The current step
- Returns:
None
- setup(controller, params, description, **kwargs)[source]¶
Define default 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)