Classes | Public Member Functions | Static Public Member Functions | Protected Attributes | Friends

TrilinosWrappers::PreconditionBase Class Reference
[TrilinosWrappersPreconditioners and Relaxation Operators]

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
void vmult (::parallel::distributed::Vector< double > &dst, const ::parallel::distributed::Vector< double > &src) const

Static Public Member Functions

::ExceptionBaseExcNonMatchingMaps (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_SerialComm 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

Definition at line 72 of file trilinos_precondition.h.


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.

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

Apply the preconditioner on deal.II parallel 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]

Definition at line 147 of file trilinos_precondition.h.

friend class PreconditionStokes [friend]

Definition at line 148 of file trilinos_precondition.h.


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.

Definition at line 157 of file trilinos_precondition.h.

Epetra_SerialComm TrilinosWrappers::PreconditionBase::communicator [protected]

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

Definition at line 168 of file trilinos_precondition.h.

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.

Definition at line 176 of file trilinos_precondition.h.


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

deal.II documentation generated on Fri Feb 3 2012 06:04:17 by doxygen 1.7.2