weightedresidreductioncriterion.hh File Reference

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

#include "convergencecriterion.hh"
#include <iostream>
Include dependency graph for weightedresidreductioncriterion.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Namespaces

 Ewoms
 

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.