Reference documentation for deal.II version 8.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Public Member Functions | Private Attributes | List of all members
MGCoarseGridLACIteration< SOLVER, VECTOR > Class Template Reference

#include <mg_coarse.h>

Inheritance diagram for MGCoarseGridLACIteration< SOLVER, VECTOR >:
[legend]

Public Member Functions

 MGCoarseGridLACIteration ()
 
template<class MATRIX , class PRECOND >
 MGCoarseGridLACIteration (SOLVER &, const MATRIX &, const PRECOND &)
 
 ~MGCoarseGridLACIteration ()
 
template<class MATRIX , class PRECOND >
void initialize (SOLVER &, const MATRIX &, const PRECOND &)
 
void clear ()
 
void operator() (const unsigned int level, VECTOR &dst, const VECTOR &src) const
 
template<class MATRIX >
void set_matrix (const MATRIX &)
 
- Public Member Functions inherited from MGCoarseGridBase< VECTOR >
virtual ~MGCoarseGridBase ()
 
- Public Member Functions inherited from Subscriptor
 Subscriptor ()
 
 Subscriptor (const Subscriptor &)
 
virtual ~Subscriptor ()
 
Subscriptoroperator= (const Subscriptor &)
 
void subscribe (const char *identifier=0) const
 
void unsubscribe (const char *identifier=0) const
 
unsigned int n_subscriptions () const
 
void list_subscribers () const
 
 DeclException3 (ExcInUse, int, char *, std::string &,<< "Object of class "<< arg2<< " is still used by "<< arg1<< " other objects.\n"<< "(Additional information: "<< arg3<< ")\n"<< "Note the entry in the Frequently Asked Questions of "<< "deal.II (linked to from http://www.dealii.org/) for "<< "more information on what this error means.")
 
 DeclException2 (ExcNoSubscriber, char *, char *,<< "No subscriber with identifier \""<< arg2<< "\" did subscribe to this object of class "<< arg1)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

SmartPointer< SOLVER,
MGCoarseGridLACIteration
< SOLVER, VECTOR > > 
solver
 
PointerMatrixBase< VECTOR > * matrix
 
PointerMatrixBase< VECTOR > * precondition
 

Detailed Description

template<class SOLVER, class VECTOR = Vector<double>>
class MGCoarseGridLACIteration< SOLVER, VECTOR >

Coarse grid solver using LAC iterative methods. This is a little wrapper, transforming a triplet of iterative solver, matrix and preconditioner into a coarse grid solver.

The type of the matrix (i.e. the template parameter MATRIX) should be derived from Subscriptor to allow for the use of a smart pointer to it.

Author
Guido Kanschat, 1999, Ralf Hartmann, 2002.

Definition at line 43 of file mg_coarse.h.

Constructor & Destructor Documentation

template<class SOLVER , class VECTOR = Vector<double>>
MGCoarseGridLACIteration< SOLVER, VECTOR >::MGCoarseGridLACIteration ( )

Default constructor.

template<class SOLVER , class VECTOR = Vector<double>>
template<class MATRIX , class PRECOND >
MGCoarseGridLACIteration< SOLVER, VECTOR >::MGCoarseGridLACIteration ( SOLVER ,
const MATRIX ,
const PRECOND &   
)

Constructor. Store solver, matrix and preconditioning method for later use.

template<class SOLVER , class VECTOR = Vector<double>>
MGCoarseGridLACIteration< SOLVER, VECTOR >::~MGCoarseGridLACIteration ( )

Destructor freeing the pointers.

Member Function Documentation

template<class SOLVER , class VECTOR = Vector<double>>
template<class MATRIX , class PRECOND >
void MGCoarseGridLACIteration< SOLVER, VECTOR >::initialize ( SOLVER ,
const MATRIX ,
const PRECOND &   
)

Initialize new data.

template<class SOLVER , class VECTOR = Vector<double>>
void MGCoarseGridLACIteration< SOLVER, VECTOR >::clear ( )

Clear all pointers.

template<class SOLVER , class VECTOR = Vector<double>>
void MGCoarseGridLACIteration< SOLVER, VECTOR >::operator() ( const unsigned int  level,
VECTOR &  dst,
const VECTOR &  src 
) const
virtual

Implementation of the abstract function. Calls the solver method with matrix, vectors and preconditioner.

Implements MGCoarseGridBase< VECTOR >.

template<class SOLVER , class VECTOR = Vector<double>>
template<class MATRIX >
void MGCoarseGridLACIteration< SOLVER, VECTOR >::set_matrix ( const MATRIX )

Sets the matrix. This gives the possibility to replace the matrix that was given to the constructor by a new matrix.

Member Data Documentation

template<class SOLVER , class VECTOR = Vector<double>>
SmartPointer<SOLVER,MGCoarseGridLACIteration<SOLVER,VECTOR> > MGCoarseGridLACIteration< SOLVER, VECTOR >::solver
private

Reference to the solver.

Definition at line 104 of file mg_coarse.h.

template<class SOLVER , class VECTOR = Vector<double>>
PointerMatrixBase<VECTOR>* MGCoarseGridLACIteration< SOLVER, VECTOR >::matrix
private

Reference to the matrix.

Definition at line 109 of file mg_coarse.h.

template<class SOLVER , class VECTOR = Vector<double>>
PointerMatrixBase<VECTOR>* MGCoarseGridLACIteration< SOLVER, VECTOR >::precondition
private

Reference to the preconditioner.

Definition at line 114 of file mg_coarse.h.


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