GEOSX
|
This class creates and provides basic support for Hypre solvers. More...
#include <HypreSolver.hpp>
Public Member Functions | |
HypreSolver (LinearSolverParameters parameters) | |
Solver constructor, with parameter list reference. More... | |
virtual | ~HypreSolver ()=default |
Virtual destructor. | |
void | solve (HypreMatrix &mat, HypreVector &sol, HypreVector &rhs, DofManager const *const dofManager=nullptr) |
Solve system with an iterative solver (HARD CODED PARAMETERS, GMRES). More... | |
LinearSolverResult const & | result () |
Get the result of previous solve. More... | |
This class creates and provides basic support for Hypre solvers.
Definition at line 35 of file HypreSolver.hpp.
geosx::HypreSolver::HypreSolver | ( | LinearSolverParameters | parameters | ) |
Solver constructor, with parameter list reference.
[in] | parameters | structure containing linear solver parameters |
|
inline |
Get the result of previous solve.
Definition at line 68 of file HypreSolver.hpp.
void geosx::HypreSolver::solve | ( | HypreMatrix & | mat, |
HypreVector & | sol, | ||
HypreVector & | rhs, | ||
DofManager const *const | dofManager = nullptr |
||
) |
Solve system with an iterative solver (HARD CODED PARAMETERS, GMRES).
[in,out] | mat | the matrix |
[in,out] | sol | the solution |
[in,out] | rhs | the right-hand side |
dofManager | the Degree-of-Freedom manager associated with matrix |
Solve Ax=b with A an HypreMatrix, x and b HypreVector.