Classes | Public Member Functions | Static Public Member Functions | Protected Attributes | Friends
TrilinosWrappers::PreconditionBase Class Reference
Inheritance diagram for TrilinosWrappers::PreconditionBase:
Inheritance graph
[legend]

List of all members.

Classes

struct  AdditionalData

Public Member Functions

 PreconditionBase ()
 PreconditionBase (const PreconditionBase &)
 ~PreconditionBase ()
void clear ()
void vmult (VectorBase &dst, const VectorBase &src) const
void vmult (::Vector< double > &dst, const ::Vector< double > &src) const

Static Public Member Functions

::ExceptionBase & ExcNonMatchingMaps (std::string arg1) throw (errortext << "The sparse matrix the preconditioner is based on " << "uses a map that is not compatible to the one in vector " << arg1 << ". Check preconditioner and matrix setup." )

Protected Attributes

std_cxx1x::shared_ptr
< Epetra_Operator > 
preconditioner
Epetra_MpiComm communicator
std_cxx1x::shared_ptr< Epetra_Map > vector_distributor

Friends

class SolverBase
class PreconditionStokes

Detailed Description

The base class for all preconditioners based on Trilinos sparse matrices.

Author:
Martin Kronbichler, 2008

Constructor & Destructor Documentation

TrilinosWrappers::PreconditionBase::PreconditionBase ( )

Constructor. Does not do anything. The initialize function of the derived classes will have to create the preconditioner from a given sparse matrix.

TrilinosWrappers::PreconditionBase::PreconditionBase ( const PreconditionBase &  )

Copy constructor.

TrilinosWrappers::PreconditionBase::~PreconditionBase ( )

Destructor.


Member Function Documentation

void TrilinosWrappers::PreconditionBase::clear ( )

Destroys the preconditioner, leaving an object like just after having called the constructor.

Reimplemented in TrilinosWrappers::PreconditionAMG.

void TrilinosWrappers::PreconditionBase::vmult ( VectorBase &  dst,
const VectorBase &  src 
) const

Apply the preconditioner.

void TrilinosWrappers::PreconditionBase::vmult ( ::Vector< double > &  dst,
const ::Vector< double > &  src 
) const

Apply the preconditioner on deal.II data structures instead of the ones provided in the Trilinos wrapper class.

::ExceptionBase& TrilinosWrappers::PreconditionBase::ExcNonMatchingMaps ( std::string  arg1) throw (errortext << "The sparse matrix the preconditioner is based on " << "uses a map that is not compatible to the one in vector " << arg1 << ". Check preconditioner and matrix setup." ) [static]

Exception.


Friends And Related Function Documentation

friend class SolverBase [friend]
friend class PreconditionStokes [friend]

Member Data Documentation

std_cxx1x::shared_ptr<Epetra_Operator> TrilinosWrappers::PreconditionBase::preconditioner [protected]

This is a pointer to the preconditioner object that is used when applying the preconditioner.

Internal communication pattern in case the matrix needs to be copied from deal.II format.

std_cxx1x::shared_ptr<Epetra_Map> TrilinosWrappers::PreconditionBase::vector_distributor [protected]

Internal Trilinos map in case the matrix needs to be copied from deal.II format.


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

deal.II documentation generated on Fri Aug 12 2011 15:01:11 by doxygen 1.7.4