Implement *Tolerance() methods from LinearSolverInterface

See cset f08b1fb48d19 for additional details.
This commit is contained in:
Bård Skaflestad committed 2012-06-06 16:35:36 +02:00
1 parent 187957397c
commit ac38491883
2 files changed
+20

No files matched your search

+12
View File
@@ -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
+8
View File
@@ -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_ ;