Added possibility to set tolerance for linear solvers.

This commit is contained in:
Xavier Raynaud
2012-06-06 15:14:46 +02:00
parent d1a4fa6dcd
commit c81a840382
9 changed files with 94 additions and 5 deletions

View File

@@ -75,6 +75,17 @@ namespace Opm
const double* sa,
const double* rhs,
double* solution) const;
/// Set tolerance for the linear solver.
/// \param[in] tol tolerance value
/// Not used for LinearSolverFactory
virtual void setTolerance(const double tol);
/// Get tolerance for the linear solver.
/// \param[out] tolerance value
/// Not used for LinearSolverFactory. Returns -1.
virtual double getTolerance() const;
private:
std::tr1::shared_ptr<LinearSolverInterface> solver_;
};