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

@@ -93,6 +93,15 @@ namespace Opm
return solver_->solve(size, nonzeros, ia, ja, sa, rhs, solution);
}
void LinearSolverFactory::setTolerance(const double tol)
{
solver_->setTolerance(tol);
}
double LinearSolverFactory::getTolerance() const
{
return solver_->getTolerance();
}