Opm::Linear::ResidReductionCriterion< Vector > Class Template Reference Provides a convergence criterion which looks at the reduction of the two-norm of the residual for the linear solvers. More...
Inheritance diagram for Opm::Linear::ResidReductionCriterion< Vector >:
Detailed Descriptiontemplate<class Vector> class Opm::Linear::ResidReductionCriterion< Vector > Provides a convergence criterion which looks at the reduction of the two-norm of the residual for the linear solvers. For the ResidReductionCriterion, the error of the solution is defined as
Constructor & Destructor Documentation◆ ResidReductionCriterion()
template<class Vector >
Member Function Documentation◆ accuracy()
template<class Vector >
Returns the accuracy of the solution at the last update. A value of zero means that the solution was exact. Implements Opm::Linear::ConvergenceCriterion< Vector >. Referenced by Opm::Linear::ResidReductionCriterion< Vector >::converged(), and Opm::Linear::ResidReductionCriterion< Vector >::print(). ◆ converged()
template<class Vector >
Returns true if and only if the convergence criterion is met. Implements Opm::Linear::ConvergenceCriterion< Vector >. References Opm::Linear::ResidReductionCriterion< Vector >::accuracy(), and Opm::Linear::ResidReductionCriterion< Vector >::tolerance(). ◆ failed()
template<class Vector >
Returns true if the convergence criterion cannot be met anymore because the solver has broken down. Reimplemented in Opm::Linear::WeightedResidualReductionCriterion< Vector, CollectiveCommunication >, and Opm::Linear::CombinedCriterion< Vector, CollectiveCommunication >. Referenced by Opm::Linear::BiCGStabSolver< LinearOperator, Vector, Preconditioner >::apply(). ◆ print()
template<class Vector >
Prints the information about the convergence behaviour for the current iteration.
Reimplemented from Opm::Linear::ConvergenceCriterion< Vector >. References Opm::Linear::ResidReductionCriterion< Vector >::accuracy(). ◆ printInitial()
template<class Vector >
Prints the initial information about the convergence behaviour. This method is called after setInitial() if the solver thinks it's a good idea to be verbose. In practice, "printing the initial information" means printing column headers and the initial state.
Reimplemented from Opm::Linear::ConvergenceCriterion< Vector >. ◆ setInitial()
template<class Vector >
Set the initial solution of the linear system of equations. This version of the method does NOT take the two-norm of the residual as argument. If the two-norm of the defect is available for the linear solver, the version of the update() method with it should be called.
Implements Opm::Linear::ConvergenceCriterion< Vector >. ◆ setTolerance()
template<class Vector >
Set the maximum allowed weighted maximum of the reduction of the linear residual. ◆ tolerance()
template<class Vector >
Return the maximum allowed weighted maximum of the reduction of the linear residual. Referenced by Opm::Linear::ResidReductionCriterion< Vector >::converged(). ◆ update()
template<class Vector >
Implements Opm::Linear::ConvergenceCriterion< Vector >. The documentation for this class was generated from the following file: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||