![]() |
Reference documentation for deal.II version 8.4.2
|
#include <deal.II/multigrid/mg_coarse.h>
Public Member Functions | |
| MGCoarseGridLACIteration () | |
| template<typename MatrixType , typename PreconditionerType > | |
| MGCoarseGridLACIteration (SolverType &, const MatrixType &, const PreconditionerType &) | |
| ~MGCoarseGridLACIteration () | |
| template<typename MatrixType , typename PreconditionerType > | |
| void | initialize (SolverType &, const MatrixType &, const PreconditionerType &) |
| void | clear () |
| void | operator() (const unsigned int level, VectorType &dst, const VectorType &src) const |
| template<typename MatrixType > | |
| void | set_matrix (const MatrixType &) |
Public Member Functions inherited from MGCoarseGridBase< VectorType > | |
| virtual | ~MGCoarseGridBase () |
Public Member Functions inherited from Subscriptor | |
| Subscriptor () | |
| Subscriptor (const Subscriptor &) | |
| virtual | ~Subscriptor () |
| Subscriptor & | operator= (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."<< "\"<< "(Additional information: "<< arg3<< ")\"<< "See the entry in the Frequently Asked Questions of "<< "deal.II (linked to from http://www.dealii.org/) for "<< "a lot more information on what this error means and "<< "how to fix programs in which it happens.") | |
| DeclException2 (ExcNoSubscriber, char *, char *,<< "No subscriber with identifier <"<< arg2<< "> subscribes to this object of class "<< arg1<< ". Consequently, it cannot be unsubscribed.") | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
| SmartPointer< SolverType, MGCoarseGridLACIteration< SolverType, VectorType > > | solver |
| PointerMatrixBase< VectorType > * | matrix |
| PointerMatrixBase< VectorType > * | precondition |
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 MatrixType) should be derived from Subscriptor to allow for the use of a smart pointer to it.
Definition at line 42 of file mg_coarse.h.
| MGCoarseGridLACIteration< SolverType, VectorType >::MGCoarseGridLACIteration | ( | ) |
Default constructor.
| MGCoarseGridLACIteration< SolverType, VectorType >::MGCoarseGridLACIteration | ( | SolverType & | , |
| const MatrixType & | , | ||
| const PreconditionerType & | |||
| ) |
Constructor. Store solver, matrix and preconditioning method for later use.
| MGCoarseGridLACIteration< SolverType, VectorType >::~MGCoarseGridLACIteration | ( | ) |
Destructor freeing the pointers.
| void MGCoarseGridLACIteration< SolverType, VectorType >::initialize | ( | SolverType & | , |
| const MatrixType & | , | ||
| const PreconditionerType & | |||
| ) |
Initialize new data.
| void MGCoarseGridLACIteration< SolverType, VectorType >::clear | ( | ) |
Clear all pointers.
|
virtual |
Implementation of the abstract function. Calls the solver method with matrix, vectors and preconditioner.
Implements MGCoarseGridBase< VectorType >.
| void MGCoarseGridLACIteration< SolverType, VectorType >::set_matrix | ( | const MatrixType & | ) |
Sets the matrix. This gives the possibility to replace the matrix that was given to the constructor by a new matrix.
|
private |
Reference to the solver.
Definition at line 96 of file mg_coarse.h.
|
private |
Reference to the matrix.
Definition at line 101 of file mg_coarse.h.
|
private |
Reference to the preconditioner.
Definition at line 106 of file mg_coarse.h.
1.8.12