Reference documentation for deal.II version GIT relicensing-769-g16d39143b0 2024-05-28 17:50:02+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
No Matches
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Attributes | List of all members
MGTransferBlockBase Class Reference

#include <deal.II/multigrid/mg_transfer_block.h>

Inheritance diagram for MGTransferBlockBase:
Inheritance graph

Public Member Functions

 MGTransferBlockBase ()
 MGTransferBlockBase (const MGConstrainedDoFs &mg_constrained_dofs)
std::size_t memory_consumption () const

Protected Member Functions

template<int dim, int spacedim>
void build (const DoFHandler< dim, spacedim > &dof_handler)

Static Protected Member Functions

static ::ExceptionBaseExcMatricesNotBuilt ()

Protected Attributes

std::vector< boolselected
unsigned int n_mg_blocks
std::vector< unsigned intmg_block
std::vector< std::vector< types::global_dof_index > > sizes
std::vector< types::global_dof_indexblock_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, MGTransferBlockBasemg_constrained_dofs

Private Attributes

std::vector< std::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 or some blocks, where a GlossBlock comprises all degrees of freedom generated by one base element.

Definition at line 61 of file mg_transfer_block.h.

Constructor & Destructor Documentation

◆ MGTransferBlockBase() [1/2]

MGTransferBlockBase::MGTransferBlockBase ( )

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

Definition at line 37 of file

◆ MGTransferBlockBase() [2/2]

MGTransferBlockBase::MGTransferBlockBase ( const MGConstrainedDoFs mg_constrained_dofs)

Constructor with constraint matrices as well as mg_constrained_dofs.

Definition at line 43 of file

Member Function Documentation

◆ memory_consumption()

std::size_t MGTransferBlockBase::memory_consumption ( ) const

Memory used by this object.

Definition at line 172 of file

◆ build()

template<int dim, int spacedim>
void MGTransferBlockBase::build ( const DoFHandler< dim, spacedim > &  dof_handler)

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 206 of file

Member Data Documentation

◆ selected

std::vector<bool> MGTransferBlockBase::selected

Flag of selected blocks.

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

Definition at line 101 of file mg_transfer_block.h.

◆ n_mg_blocks

unsigned int MGTransferBlockBase::n_mg_blocks

Number of blocks of multigrid vector.

Definition at line 106 of file mg_transfer_block.h.

◆ mg_block

std::vector<unsigned int> MGTransferBlockBase::mg_block

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 116 of file mg_transfer_block.h.

◆ sizes

std::vector<std::vector<types::global_dof_index> > MGTransferBlockBase::sizes

Sizes of the multi-level vectors.

Definition at line 121 of file mg_transfer_block.h.

◆ block_start

std::vector<types::global_dof_index> MGTransferBlockBase::block_start

Start index of each block.

Definition at line 126 of file mg_transfer_block.h.

◆ mg_block_start

std::vector<std::vector<types::global_dof_index> > MGTransferBlockBase::mg_block_start

Start index of each block on all levels.

Definition at line 131 of file mg_transfer_block.h.

◆ prolongation_sparsities

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

Definition at line 139 of file mg_transfer_block.h.

◆ prolongation_matrices

std::vector<std::shared_ptr<BlockSparseMatrix<double> > > MGTransferBlockBase::prolongation_matrices

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 147 of file mg_transfer_block.h.

◆ copy_indices

std::vector<std::vector<std::vector<std::pair<unsigned int, unsigned int> > > > MGTransferBlockBase::copy_indices

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 156 of file mg_transfer_block.h.

◆ mg_constrained_dofs

SmartPointer<const MGConstrainedDoFs, MGTransferBlockBase> MGTransferBlockBase::mg_constrained_dofs

The mg_constrained_dofs of the level systems.

Definition at line 163 of file mg_transfer_block.h.

The documentation for this class was generated from the following files: