opm-simulators
weightedresidreductioncriterion.hh File Reference

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

#include "convergencecriterion.hh"
#include <iostream>

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

 Opm
 Structs needed for tpfalinearizer and its gpuparams struct extracted to be defined in one place that both can include.
 

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.