![]() |
Reference documentation for deal.II version 8.1.0
|
#include <precondition.h>
Public Types | |
| typedef types::global_dof_index | size_type |
Public Member Functions | |
| void | initialize (const MATRIX &A, const std::vector< size_type > &permutation, const std::vector< size_type > &inverse_permutation, const typename PreconditionRelaxation< MATRIX >::AdditionalData ¶meters=typename PreconditionRelaxation< MATRIX >::AdditionalData()) |
| template<class VECTOR > | |
| void | vmult (VECTOR &, const VECTOR &) const |
| template<class VECTOR > | |
| void | Tvmult (VECTOR &, const VECTOR &) const |
Public Member Functions inherited from PreconditionRelaxation< MATRIX > | |
| void | initialize (const MATRIX &A, const AdditionalData ¶meters=AdditionalData()) |
| void | clear () |
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.\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 | |
| const std::vector< size_type > * | permutation |
| const std::vector< size_type > * | inverse_permutation |
Additional Inherited Members | |
Protected Attributes inherited from PreconditionRelaxation< MATRIX > | |
| SmartPointer< const MATRIX, PreconditionRelaxation< MATRIX > > | A |
| double | relaxation |
Permuted SOR preconditioner using matrix built-in function. The MATRIX class used is required to have functions PSOR(VECTOR&, const VECTOR&, double) and TPSOR(VECTOR&, const VECTOR&, double).
Definition at line 679 of file precondition.h.
| typedef types::global_dof_index PreconditionPSOR< MATRIX >::size_type |
Declare type for container size.
Definition at line 685 of file precondition.h.
| void PreconditionPSOR< MATRIX >::initialize | ( | const MATRIX & | A, |
| const std::vector< size_type > & | permutation, | ||
| const std::vector< size_type > & | inverse_permutation, | ||
| const typename PreconditionRelaxation< MATRIX >::AdditionalData & | parameters = typename PreconditionRelaxation< MATRIX >::AdditionalData() |
||
| ) |
Initialize matrix and relaxation parameter. The matrix is just stored in the preconditioner object.
The permutation vector is stored as a pointer. Therefore, it has to be assured that the lifetime of the vector exceeds the lifetime of the preconditioner.
The relaxation parameter should be larger than zero and smaller than 2 for numerical reasons. It defaults to 1.
| void PreconditionPSOR< MATRIX >::vmult | ( | VECTOR & | , |
| const VECTOR & | |||
| ) | const |
Apply preconditioner.
| void PreconditionPSOR< MATRIX >::Tvmult | ( | VECTOR & | , |
| const VECTOR & | |||
| ) | const |
Apply transpose preconditioner.
|
private |
Storage for the permutation vector.
Definition at line 728 of file precondition.h.
|
private |
Storage for the inverse permutation vector.
Definition at line 733 of file precondition.h.
1.8.6