21 #ifndef OPM_LINEARSOLVERPETSC_HEADER_INCLUDED
22 #define OPM_LINEARSOLVERPETSC_HEADER_INCLUDED
23 #include <opm/core/linalg/LinearSolverInterface.hpp>
24 #include <opm/core/utility/parameters/ParameterGroup.hpp>
68 const boost::any&)
const;
78 std::string ksp_type_;
92 #endif // OPM_LINEARSOLVERPETSC_HEADER_INCLUDED
Struct for reporting data about the solution process back to the caller.
Definition: LinearSolverInterface.hpp:41
LinearSolverPetsc()
Default constructor.
Abstract interface for linear solvers.
Definition: LinearSolverInterface.hpp:32
virtual double getTolerance() const
Get tolerance ofthe linear solver.
Definition: LinearSolverPetsc.cpp:283
virtual ~LinearSolverPetsc()
Destructor.
Definition: LinearSolverPetsc.cpp:246
virtual LinearSolverReport solve(const int size, const int nonzeros, const int *ia, const int *ja, const double *sa, const double *rhs, double *solution, const boost::any &) const
Solve a linear system, with a matrix given in compressed sparse row format.
Definition: LinearSolverPetsc.cpp:253
LinearSolverReport solve(const CSRMatrix *A, const double *rhs, double *solution) const
Solve a linear system, with a matrix given in compressed sparse row format.
Definition: LinearSolverInterface.cpp:37
virtual void setTolerance(const double tol)
Set tolerance for the residual in dune istl linear solver.
Definition: LinearSolverPetsc.cpp:279
ParameterGroup is a class that is used to provide run-time parameters.
Definition: ParameterGroup.hpp:81
Concrete class encapsulating some Petsc linear solvers.
Definition: LinearSolverPetsc.hpp:32