OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Types | Public Member Functions | Private Attributes | List of all members
Amesos2BottomSolver< Level > Class Template Reference

Interface to Amesos2 solvers of the Trilinos package. More...

#include <Amesos2BottomSolver.h>

Inheritance diagram for Amesos2BottomSolver< Level >:
Inheritance graph
[legend]
Collaboration diagram for Amesos2BottomSolver< Level >:
Collaboration graph
[legend]

Public Types

typedef amr::matrix_t matrix_t
 
typedef amr::multivector_t mv_t
 
typedef Amesos2::Solver
< matrix_t, mv_t
solver_t
 

Public Member Functions

 Amesos2BottomSolver (std::string solvertype="klu2")
 
void solve (const Teuchos::RCP< mv_t > &x, const Teuchos::RCP< mv_t > &b)
 
void setOperator (const Teuchos::RCP< matrix_t > &A, Level *level_p=nullptr)
 
std::size_t getNumIters ()
 
- Public Member Functions inherited from BottomSolver< Teuchos::RCP< amr::matrix_t >, Teuchos::RCP< amr::multivector_t >, Level >
 BottomSolver ()
 
virtual ~BottomSolver ()
 
virtual void solve (const Teuchos::RCP< amr::multivector_t > &x, const Teuchos::RCP< amr::multivector_t > &b)=0
 
virtual void setOperator (const Teuchos::RCP< amr::matrix_t > &A, Level *level_p=nullptr)=0
 
bool hasOperator () const
 

Private Attributes

std::string solvertype_m
 kind of solver More...
 
Teuchos::RCP< solver_tsolver_mp
 solver instance More...
 

Additional Inherited Members

- Protected Attributes inherited from BottomSolver< Teuchos::RCP< amr::matrix_t >, Teuchos::RCP< amr::multivector_t >, Level >
bool isInitialized_m
 

Detailed Description

template<class Level>
class Amesos2BottomSolver< Level >

Interface to Amesos2 solvers of the Trilinos package.

Definition at line 14 of file Amesos2BottomSolver.h.

Member Typedef Documentation

template<class Level >
typedef amr::matrix_t Amesos2BottomSolver< Level >::matrix_t

Definition at line 19 of file Amesos2BottomSolver.h.

template<class Level >
typedef amr::multivector_t Amesos2BottomSolver< Level >::mv_t

Definition at line 20 of file Amesos2BottomSolver.h.

template<class Level >
typedef Amesos2::Solver<matrix_t, mv_t> Amesos2BottomSolver< Level >::solver_t

Definition at line 22 of file Amesos2BottomSolver.h.

Constructor & Destructor Documentation

template<class Level >
Amesos2BottomSolver< Level >::Amesos2BottomSolver ( std::string  solvertype = "klu2")

Instantiate

Parameters
solvertypeof Amesos2

Definition at line 2 of file Amesos2BottomSolver.hpp.

Member Function Documentation

template<class Level >
std::size_t Amesos2BottomSolver< Level >::getNumIters ( )
virtual
Returns
the number of required iterations

Implements BottomSolver< Teuchos::RCP< amr::matrix_t >, Teuchos::RCP< amr::multivector_t >, Level >.

Definition at line 40 of file Amesos2BottomSolver.hpp.

template<class Level >
void Amesos2BottomSolver< Level >::setOperator ( const Teuchos::RCP< matrix_t > &  A,
Level *  level_p = nullptr 
)

Definition at line 23 of file Amesos2BottomSolver.hpp.

References endl(), and gmsg.

Here is the call graph for this function:

template<class Level >
void Amesos2BottomSolver< Level >::solve ( const Teuchos::RCP< mv_t > &  x,
const Teuchos::RCP< mv_t > &  b 
)

Definition at line 12 of file Amesos2BottomSolver.hpp.

Member Data Documentation

template<class Level >
Teuchos::RCP<solver_t> Amesos2BottomSolver< Level >::solver_mp
private

solver instance

Definition at line 44 of file Amesos2BottomSolver.h.

template<class Level >
std::string Amesos2BottomSolver< Level >::solvertype_m
private

kind of solver

Definition at line 42 of file Amesos2BottomSolver.h.


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