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

MGTransferBlockBase Class Reference
[Multilevel support]

Inheritance diagram for MGTransferBlockBase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 MGTransferBlockBase ()
 MGTransferBlockBase (const ConstraintMatrix &constraints, const MGConstrainedDoFs &mg_constrained_dofs)
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
unsigned int n_mg_blocks
std::vector< unsigned int > mg_block
std::vector< std::vector
< unsigned int > > 
sizes
std::vector< unsigned int > block_start
std::vector< std::vector
< unsigned int > > 
mg_block_start
std::vector
< std_cxx1x::shared_ptr
< BlockSparseMatrix< double > > > 
prolongation_matrices
std::vector< std::vector
< std::vector< std::pair
< unsigned int, unsigned int > > > > 
copy_indices
SmartPointer< const
ConstraintMatrix,
MGTransferBlockBase
constraints
SmartPointer< const
MGConstrainedDoFs,
MGTransferBlockBase
mg_constrained_dofs

Private Attributes

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

Detailed Description

Implementation of matrix generation for MGTransferBlock.

This is the base class for MGTransfer objects for systems of equations where multigrid is applied only to one ore some blocks, where a GlossBlock comprises all degrees of freedom generated by one base element.

Author:
Guido Kanschat, 2001-2003

Definition at line 61 of file mg_transfer_block.h.


Constructor & Destructor Documentation

MGTransferBlockBase::MGTransferBlockBase (  )

Constructor without constraint matrices. Use this constructor only with discontinuous finite elements or with no local refinement.

MGTransferBlockBase::MGTransferBlockBase ( const ConstraintMatrix constraints,
const MGConstrainedDoFs mg_constrained_dofs 
)

Constructor with constraint matrices as well as mg_constrained_dofs.


Member Function Documentation

std::size_t MGTransferBlockBase::memory_consumption (  ) const

Memory used by this object.

Reimplemented in MGTransferBlockSelect< number >.

template<int dim, int spacedim>
void MGTransferBlockBase::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 others to restrict the transfer matrices to certain blocks.

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

Call build_matrices() function first.


Member Data Documentation

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

Flag of selected blocks.

The transfer operators only act on the blocks having a true entry here.

Definition at line 105 of file mg_transfer_block.h.

Number of blocks of multigrid vector.

Definition at line 111 of file mg_transfer_block.h.

std::vector<unsigned int> MGTransferBlockBase::mg_block [protected]

For each block of the whole block vector, list to what block of the multigrid vector it is mapped. Since depending on selected, there may be fewer mutlilevel blocks than original blocks, some of the entries may be illegal unsigned integers.

Definition at line 124 of file mg_transfer_block.h.

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

Sizes of the multi-level vectors.

Definition at line 129 of file mg_transfer_block.h.

std::vector<unsigned int> MGTransferBlockBase::block_start [protected]

Start index of each block.

Definition at line 134 of file mg_transfer_block.h.

std::vector<std::vector<unsigned int> > MGTransferBlockBase::mg_block_start [protected]

Start index of each block on all levels.

Definition at line 140 of file mg_transfer_block.h.

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

Definition at line 149 of file mg_transfer_block.h.

std::vector<std_cxx1x::shared_ptr<BlockSparseMatrix<double> > > MGTransferBlockBase::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 161 of file mg_transfer_block.h.

std::vector<std::vector<std::vector<std::pair<unsigned int, unsigned int> > > > MGTransferBlockBase::copy_indices [protected]

Mapping for the copy_to/from_mg-functions. The indices into this vector are (in this order): global block number, level number. The data is first the global index inside the block, then the level index inside the block.

Definition at line 175 of file mg_transfer_block.h.

The constraints of the global system.

Definition at line 180 of file mg_transfer_block.h.

The mg_constrained_dofs of the level systems.

Definition at line 186 of file mg_transfer_block.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