mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Added possibility to set tolerance for linear solvers.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user