dune-istl 2.9.1
|
Class for controlling iterative methods. More...
#include <dune/istl/solver.hh>
Public Member Functions | |
Iteration (const IterativeSolver &parent, InverseOperatorResult &res) | |
Iteration (const Iteration &)=delete | |
Iteration (Iteration &&other) | |
~Iteration () | |
bool | step (CountType i, real_type def) |
registers the iteration step, checks for invalid defect norm and convergence. | |
Protected Member Functions | |
void | finalize () |
Protected Attributes | |
real_type | _def0 = 0.0 |
real_type | _def = 0.0 |
CountType | _i |
Timer | _watch |
InverseOperatorResult & | _res |
const IterativeSolver & | _parent |
bool | _valid |
Class for controlling iterative methods.
This class provides building blocks for a iterative method. It does all things that have to do with output, residual checking (NaN, infinite, convergence) and sets also the fields of InverseOperatorResult.
Instances of this class are meant to create with IterativeSolver::startIteration and stored as a local variable in the apply method. If the scope of the apply method is left the destructor of this class sets all the solver statistics in the InverseOperatorResult and prints the final output.
During the iteration in every step Iteration::step should be called with the current iteration count and norm of the residual. It returns true if convergence is achieved.
|
inline |
|
delete |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
registers the iteration step, checks for invalid defect norm and convergence.
i | The current iteration count |
def | The current norm of the defect |
SolverAbort | when def contains inf or NaN |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |