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:
@@ -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_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user