Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Attributes

MGTransferComponentBase Class Reference
[Multilevel support]

Inheritance diagram for MGTransferComponentBase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

std::size_t memory_consumption () const

Protected Member Functions

template<int dim, int spacedim>
void build_matrices (const DoFHandler< dim, spacedim > &dof, const MGDoFHandler< dim, spacedim > &mg_dof)

Static Protected Member Functions

::ExceptionBaseExcMatricesNotBuilt ()

Protected Attributes

std::vector< boolselected
std::vector< boolmg_selected
std::vector< unsigned int > target_component
std::vector< unsigned int > mg_target_component
std::vector< std::vector
< unsigned int > > 
sizes
std::vector< unsigned int > component_start
std::vector< std::vector
< unsigned int > > 
mg_component_start
std::vector
< std_cxx1x::shared_ptr
< BlockSparseMatrix< double > > > 
prolongation_matrices
std::vector< std::vector
< std::pair< unsigned int,
unsigned int > > > 
copy_to_and_from_indices
std::vector< std::set
< unsigned int > > 
boundary_indices

Private Attributes

std::vector
< std_cxx1x::shared_ptr
< BlockSparsityPattern > > 
prolongation_sparsities

Detailed Description

Implementation of matrix generation for component wise multigrid transfer.

Note:
MGTransferBlockBase is probably the more logical class. Still eventually, a class should be developed allowing to select multiple components.
Author:
Guido Kanschat, 2001-2003

Definition at line 59 of file mg_transfer_component.h.


Member Function Documentation

std::size_t MGTransferComponentBase::memory_consumption (  ) const

Memory used by this object.

Reimplemented in MGTransferSelect< number >.

template<int dim, int spacedim>
void MGTransferComponentBase::build_matrices ( const DoFHandler< dim, spacedim > &  dof,
const MGDoFHandler< dim, spacedim > &  mg_dof 
) [protected]

Actually build the prolongation matrices for each level.

This function is only called by derived classes. These can also set the member variables selected and mg_selected to restrict the transfer matrices to certain components. Furthermore, they use target_component and mg_target_component for re-ordering and grouping of components.

::ExceptionBase& MGTransferComponentBase::ExcMatricesNotBuilt (  ) [static, protected]

Call build_matrices() function first.


Member Data Documentation

std::vector<bool> MGTransferComponentBase::selected [protected]

Flag of selected components.

The transfer operators only act on the components having a true entry here. If renumbering by target_component is used, this refers to the renumbered components.

Definition at line 100 of file mg_transfer_component.h.

std::vector<bool> MGTransferComponentBase::mg_selected [protected]

Flag of selected components.

The transfer operators only act on the components having a true entry here. If renumbering by mg_target_component is used, this refers to the renumbered components.

Definition at line 113 of file mg_transfer_component.h.

Target component of the fine-level vector if renumbering is required.

Definition at line 120 of file mg_transfer_component.h.

Target component if renumbering of level vectors is required.

Definition at line 127 of file mg_transfer_component.h.

std::vector<std::vector<unsigned int> > MGTransferComponentBase::sizes [mutable, protected]

Sizes of the multi-level vectors.

Definition at line 132 of file mg_transfer_component.h.

std::vector<unsigned int> MGTransferComponentBase::component_start [protected]

Start index of each component.

Definition at line 137 of file mg_transfer_component.h.

std::vector<std::vector<unsigned int> > MGTransferComponentBase::mg_component_start [protected]

Start index of each component on all levels.

Definition at line 143 of file mg_transfer_component.h.

std::vector<std_cxx1x::shared_ptr<BlockSparsityPattern> > MGTransferComponentBase::prolongation_sparsities [private]

Definition at line 152 of file mg_transfer_component.h.

std::vector<std_cxx1x::shared_ptr<BlockSparseMatrix<double> > > MGTransferComponentBase::prolongation_matrices [protected]

The actual prolongation matrix. column indices belong to the dof indices of the mother cell, i.e. the coarse level. while row indices belong to the child cell, i.e. the fine level.

Definition at line 164 of file mg_transfer_component.h.

std::vector<std::vector<std::pair<unsigned int, unsigned int> > > MGTransferComponentBase::copy_to_and_from_indices [protected]

Holds the mapping for the copy_to/from_mg-functions. The data is first the global index, then the level index.

Definition at line 173 of file mg_transfer_component.h.

std::vector<std::set<unsigned int> > MGTransferComponentBase::boundary_indices [protected]

Store the boundary_indices. These are needed for the boundary values in the restriction matrix.

Definition at line 181 of file mg_transfer_component.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:09 by doxygen 1.7.2