Implement *Tolerance() methods from LinearSolverInterface
See cset f08b1fb48d19 for additional details.
This commit is contained in:
1 parent
187957397c
commit
ac38491883
2 files changed
+20
No files matched your search
@@ -121,4 +121,16 @@ namespace Opm
|
||||
rpt.converged = rpt.iterations <= max_it_;
|
||||
return rpt;
|
||||
}
|
||||
|
||||
void
|
||||
LinearSolverAGMG::setTolerance(const double tol)
|
||||
{
|
||||
rtol_ = tol;
|
||||
}
|
||||
|
||||
double
|
||||
LinearSolverAGMG::getTolerance() const
|
||||
{
|
||||
return rtol_;
|
||||
}
|
||||
} // namespace Opm
|
||||
@@ -82,6 +82,14 @@ namespace Opm
|
||||
const int* ia, const int* ja, const double* sa,
|
||||
const double* rhs, double* solution) const;
|
||||
|
||||
/// Set tolerance for the linear solver.
|
||||
/// \param[in] tol tolerance value
|
||||
virtual void setTolerance(const double tol);
|
||||
|
||||
/// Get tolerance for the linear solver.
|
||||
/// \return tolerance value
|
||||
virtual double getTolerance() const;
|
||||
|
||||
private:
|
||||
int max_it_;
|
||||
double rtol_ ;
|
||||
|
||||
Reference in new issue
Block a user