Reference documentation for deal.II version 9.1.1
|
#include <deal.II/multigrid/mg_transfer_block.h>
Public Member Functions | |
MGTransferBlockBase () | |
MGTransferBlockBase (const MGConstrainedDoFs &mg_constrained_dofs) | |
MGTransferBlockBase (const AffineConstraints< double > &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 DoFHandler< dim, spacedim > &mg_dof) |
Static Protected Member Functions | |
static ::ExceptionBase & | ExcMatricesNotBuilt () |
Protected Attributes | |
std::vector< bool > | selected |
unsigned int | n_mg_blocks |
std::vector< unsigned int > | mg_block |
std::vector< std::vector< types::global_dof_index > > | sizes |
std::vector< types::global_dof_index > | block_start |
std::vector< std::vector< types::global_dof_index > > | mg_block_start |
std::vector< std::shared_ptr< BlockSparseMatrix< double > > > | prolongation_matrices |
std::vector< std::vector< std::vector< std::pair< unsigned int, unsigned int > > > > | copy_indices |
SmartPointer< const MGConstrainedDoFs, MGTransferBlockBase > | mg_constrained_dofs |
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 or some blocks, where a GlossBlock comprises all degrees of freedom generated by one base element.
Definition at line 60 of file mg_transfer_block.h.
MGTransferBlockBase::MGTransferBlockBase | ( | ) |
Constructor without constraint matrices. Use this constructor only with discontinuous finite elements or with no local refinement.
Definition at line 39 of file multigrid.cc.
MGTransferBlockBase::MGTransferBlockBase | ( | const MGConstrainedDoFs & | mg_constrained_dofs | ) |
Constructor with constraint matrices as well as mg_constrained_dofs.
Definition at line 45 of file multigrid.cc.
MGTransferBlockBase::MGTransferBlockBase | ( | const AffineConstraints< double > & | constraints, |
const MGConstrainedDoFs & | mg_constrained_dofs | ||
) |
Constructor with constraint matrices as well as mg_constrained_dofs.
constraints
is unused. Definition at line 52 of file multigrid.cc.
std::size_t MGTransferBlockBase::memory_consumption | ( | ) | const |
Memory used by this object.
Definition at line 174 of file multigrid.cc.
|
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.
Definition at line 208 of file mg_transfer_block.cc.
|
protected |
Flag of selected blocks.
The transfer operators only act on the blocks having a true
entry here.
Definition at line 110 of file mg_transfer_block.h.
|
protected |
Number of blocks of multigrid vector.
Definition at line 115 of file mg_transfer_block.h.
|
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 multilevel blocks than original blocks, some of the entries may be illegal unsigned integers.
Definition at line 125 of file mg_transfer_block.h.
|
mutableprotected |
Sizes of the multi-level vectors.
Definition at line 130 of file mg_transfer_block.h.
|
protected |
Start index of each block.
Definition at line 135 of file mg_transfer_block.h.
|
protected |
Start index of each block on all levels.
Definition at line 140 of file mg_transfer_block.h.
|
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 156 of file mg_transfer_block.h.
|
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 165 of file mg_transfer_block.h.
|
protected |
The mg_constrained_dofs of the level systems.
Definition at line 172 of file mg_transfer_block.h.