My Project
Loading...
Searching...
No Matches
combinedcriterion.hh File Reference

Convergence criterion which looks at the absolute value of the residual and fails if the linear solver stagnates. More...

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

Go to the source code of this file.

Classes

class  Opm::Linear::CombinedCriterion< Vector, CollectiveCommunication >
 Convergence criterion which looks at the absolute value of the residual and fails if the linear solver stagnates. More...
 

Namespaces

namespace  Opm
 This file contains a set of helper functions used by VFPProd / VFPInj.
 

Detailed Description

Convergence criterion which looks at the absolute value of the residual and fails if the linear solver stagnates.

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

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

where $r^k = \mathbf{A} x^k - b $ is the residual for the k-th iterative solution vector $x^k$.

In addition, to the reduction of the maximum residual, the linear solver is aborted early if the residual goes below or above absolute limits.