MFEM v2.0
|
GMRES solver in hypre. More...
#include <hypre.hpp>
Public Member Functions | |
HypreGMRES (HypreParMatrix &_A) | |
void | SetTol (double tol) |
void | SetMaxIter (int max_iter) |
void | SetKDim (int dim) |
void | SetLogging (int logging) |
void | SetPrintLevel (int print_lvl) |
void | SetPreconditioner (HypreSolver &precond) |
Set the hypre solver to be used as a preconditioner. | |
void | SetZeroInintialIterate () |
non-hypre setting | |
virtual | operator HYPRE_Solver () const |
The typecast to HYPRE_Solver returns the internal gmres_solver. | |
virtual HYPRE_PtrToParSolverFcn | SetupFcn () const |
GMRES Setup function. | |
virtual HYPRE_PtrToParSolverFcn | SolveFcn () const |
GMRES Solve function. | |
virtual void | Mult (const HypreParVector &b, HypreParVector &x) const |
Solve Ax=b with hypre's GMRES. | |
virtual | ~HypreGMRES () |
Private Attributes | |
int | print_level |
int | use_zero_initial_iterate |
HYPRE_Solver | gmres_solver |
HypreGMRES::HypreGMRES | ( | HypreParMatrix & | _A | ) |
virtual HypreGMRES::~HypreGMRES | ( | ) | [virtual] |
virtual void HypreGMRES::Mult | ( | const HypreParVector & | b, |
HypreParVector & | x | ||
) | const [virtual] |
Solve Ax=b with hypre's GMRES.
Reimplemented from HypreSolver.
virtual HypreGMRES::operator HYPRE_Solver | ( | ) | const [inline, virtual] |
The typecast to HYPRE_Solver returns the internal gmres_solver.
Implements HypreSolver.
Definition at line 302 of file hypre.hpp.
References gmres_solver.
void HypreGMRES::SetKDim | ( | int | dim | ) |
void HypreGMRES::SetLogging | ( | int | logging | ) |
void HypreGMRES::SetMaxIter | ( | int | max_iter | ) |
void HypreGMRES::SetPreconditioner | ( | HypreSolver & | precond | ) |
Set the hypre solver to be used as a preconditioner.
void HypreGMRES::SetPrintLevel | ( | int | print_lvl | ) |
void HypreGMRES::SetTol | ( | double | tol | ) |
virtual HYPRE_PtrToParSolverFcn HypreGMRES::SetupFcn | ( | ) | const [inline, virtual] |
void HypreGMRES::SetZeroInintialIterate | ( | ) | [inline] |
virtual HYPRE_PtrToParSolverFcn HypreGMRES::SolveFcn | ( | ) | const [inline, virtual] |
HYPRE_Solver HypreGMRES::gmres_solver [private] |
Definition at line 284 of file hypre.hpp.
Referenced by operator HYPRE_Solver().
int HypreGMRES::print_level [private] |
int HypreGMRES::use_zero_initial_iterate [private] |
Definition at line 283 of file hypre.hpp.
Referenced by SetZeroInintialIterate().