MFEM v2.0
Public Member Functions | Private Attributes
HypreGMRES Class Reference

GMRES solver in hypre. More...

#include <hypre.hpp>

Inheritance diagram for HypreGMRES:
Inheritance graph
[legend]
Collaboration diagram for HypreGMRES:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

GMRES solver in hypre.

Definition at line 280 of file hypre.hpp.


Constructor & Destructor Documentation

HypreGMRES::HypreGMRES ( HypreParMatrix _A)
virtual HypreGMRES::~HypreGMRES ( ) [virtual]

Member Function Documentation

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]

GMRES Setup function.

Implements HypreSolver.

Definition at line 305 of file hypre.hpp.

void HypreGMRES::SetZeroInintialIterate ( ) [inline]

non-hypre setting

Definition at line 299 of file hypre.hpp.

References use_zero_initial_iterate.

virtual HYPRE_PtrToParSolverFcn HypreGMRES::SolveFcn ( ) const [inline, virtual]

GMRES Solve function.

Implements HypreSolver.

Definition at line 308 of file hypre.hpp.


Member Data Documentation

HYPRE_Solver HypreGMRES::gmres_solver [private]

Definition at line 284 of file hypre.hpp.

Referenced by operator HYPRE_Solver().

int HypreGMRES::print_level [private]

Definition at line 283 of file hypre.hpp.

Definition at line 283 of file hypre.hpp.

Referenced by SetZeroInintialIterate().


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines