Dune Core Modules (2.9.0)
Class for controlling iterative methods. More...
#include <dune/istl/solver.hh>
Public Member Functions | |
bool | step (CountType i, real_type def) |
registers the iteration step, checks for invalid defect norm and convergence. More... | |
Detailed Description
template<class CountType = unsigned int>
class Dune::IterativeSolver< X, Y >::Iteration< CountType >
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.
Member Function Documentation
◆ step()
|
inline |
registers the iteration step, checks for invalid defect norm and convergence.
- Parameters
-
i The current iteration count def The current norm of the defect
- Returns
- true is convergence is achieved
- Exceptions
-
SolverAbort when def
contains inf or NaN
References Dune::Simd::allTrue().
The documentation for this class was generated from the following file:
- dune/istl/solver.hh