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:
@@ -172,6 +172,17 @@ namespace Opm
|
||||
return res;
|
||||
}
|
||||
|
||||
void LinearSolverIstl::setTolerance(const double tol)
|
||||
{
|
||||
linsolver_residual_tolerance_ = tol;
|
||||
}
|
||||
|
||||
double LinearSolverIstl::getTolerance() const
|
||||
{
|
||||
return linsolver_residual_tolerance_;
|
||||
}
|
||||
|
||||
|
||||
|
||||
namespace
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user