weightedresidreductioncriterion.hh File Reference
#include "convergencecriterion.hh"
#include <iostream>
Include dependency graph for weightedresidreductioncriterion.hh:

Go to the source code of this file.

Classes

class  Opm::Linear::WeightedResidualReductionCriterion< Vector, CollectiveCommunication >
 Convergence criterion which looks at the weighted absolute value of the residual. More...
 

Namespaces

namespace  Opm
 
namespace  Opm::Linear
 

Detailed Description

Convergence criterion which looks at the weighted absolute value of the residual.

For the WeightedResidualReductionCriterion, the error of the solution is defined as

\[ e^k = \max_i\{ \left| w_i r^k_i \right| \}\;, \]

where $r^k = \mathbf{A} x^k - b $ is the residual for the k-th iterative solution vector $x^k$ and $w_i$ is the weight of the $i$-th linear equation.

In addition, to the reduction of the maximum defect, the linear solver is also considered to be converged, if the defect goes below a given absolute limit.