MFEM  v3.1
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
mfem::UMFPackSolver Class Reference

Direct sparse solver using UMFPACK. More...

#include <solvers.hpp>

Inheritance diagram for mfem::UMFPackSolver:
[legend]
Collaboration diagram for mfem::UMFPackSolver:
[legend]

Public Member Functions

 UMFPackSolver (bool _use_long_ints=false)
 
 UMFPackSolver (SparseMatrix &A, bool _use_long_ints=false)
 
virtual void SetOperator (const Operator &op)
 Set/update the solver for the given operator. More...
 
void SetPrintLevel (int print_lvl)
 
virtual void Mult (const Vector &b, Vector &x) const
 Operator application. More...
 
virtual void MultTranspose (const Vector &b, Vector &x) const
 Action of the transpose operator. More...
 
virtual ~UMFPackSolver ()
 
- Public Member Functions inherited from mfem::Solver
 Solver (int s=0, bool iter_mode=false)
 
 Solver (int h, int w, bool iter_mode=false)
 Initialize a Solver with height 'h' and width 'w'. More...
 
- Public Member Functions inherited from mfem::Operator
 Operator (int s=0)
 Construct a square Operator with given size s (default 0) More...
 
 Operator (int h, int w)
 
int Height () const
 Get the height (size of output) of the Operator. Synonym with NumRows. More...
 
int NumRows () const
 
int Width () const
 Get the width (size of input) of the Operator. Synonym with NumCols. More...
 
int NumCols () const
 
virtual OperatorGetGradient (const Vector &x) const
 Evaluate the gradient operator at the point x. More...
 
void PrintMatlab (std::ostream &out, int n=0, int m=0)
 Prints operator with input size n and output size m in matlab format. More...
 
virtual ~Operator ()
 

Public Attributes

double Control [UMFPACK_CONTROL]
 
double Info [UMFPACK_INFO]
 
- Public Attributes inherited from mfem::Solver
bool iterative_mode
 If true, use the second argument of Mult as an initial guess. More...
 

Protected Member Functions

void Init ()
 

Protected Attributes

bool use_long_ints
 
SparseMatrixmat
 
void * Numeric
 
SuiteSparse_long * AI
 
SuiteSparse_long * AJ
 
- Protected Attributes inherited from mfem::Operator
int height
 
int width
 

Detailed Description

Direct sparse solver using UMFPACK.

Definition at line 332 of file solvers.hpp.

Constructor & Destructor Documentation

mfem::UMFPackSolver::UMFPackSolver ( bool  _use_long_ints = false)
inline

Definition at line 346 of file solvers.hpp.

mfem::UMFPackSolver::UMFPackSolver ( SparseMatrix A,
bool  _use_long_ints = false 
)
inline

Definition at line 348 of file solvers.hpp.

mfem::UMFPackSolver::~UMFPackSolver ( )
virtual

Definition at line 1791 of file solvers.cpp.

Member Function Documentation

void mfem::UMFPackSolver::Init ( )
protected

Definition at line 1610 of file solvers.cpp.

void mfem::UMFPackSolver::Mult ( const Vector x,
Vector y 
) const
virtual

Operator application.

Implements mfem::Operator.

Definition at line 1725 of file solvers.cpp.

void mfem::UMFPackSolver::MultTranspose ( const Vector x,
Vector y 
) const
virtual

Action of the transpose operator.

Reimplemented from mfem::Operator.

Definition at line 1757 of file solvers.cpp.

void mfem::UMFPackSolver::SetOperator ( const Operator op)
virtual

Set/update the solver for the given operator.

Implements mfem::Solver.

Definition at line 1625 of file solvers.cpp.

void mfem::UMFPackSolver::SetPrintLevel ( int  print_lvl)
inline

Definition at line 354 of file solvers.hpp.

Member Data Documentation

SuiteSparse_long* mfem::UMFPackSolver::AI
protected

Definition at line 338 of file solvers.hpp.

SuiteSparse_long * mfem::UMFPackSolver::AJ
protected

Definition at line 338 of file solvers.hpp.

double mfem::UMFPackSolver::Control[UMFPACK_CONTROL]

Definition at line 343 of file solvers.hpp.

double mfem::UMFPackSolver::Info[UMFPACK_INFO]
mutable

Definition at line 344 of file solvers.hpp.

SparseMatrix* mfem::UMFPackSolver::mat
protected

Definition at line 336 of file solvers.hpp.

void* mfem::UMFPackSolver::Numeric
protected

Definition at line 337 of file solvers.hpp.

bool mfem::UMFPackSolver::use_long_ints
protected

Definition at line 335 of file solvers.hpp.


The documentation for this class was generated from the following files: