15#ifndef dealii_mg_transfer_component_h
16#define dealii_mg_transfer_component_h
41template <
int dim,
int spacedim>
83 template <
int dim,
int spacedim>
118 mutable std::vector<std::vector<types::global_dof_index>>
sizes;
150 std::vector<std::vector<std::pair<types::global_dof_index, unsigned int>>>
173template <
typename number>
220 template <
int dim,
int spacedim>
223 unsigned int selected,
224 unsigned int mg_selected,
226 std::vector<unsigned int>(),
228 std::vector<unsigned int>(),
230 std::vector<std::set<types::global_dof_index>>());
236 select(
const unsigned int component,
255 template <
int dim,
typename number2,
int spacedim>
267 template <
int dim,
typename number2,
int spacedim>
278 template <
int dim,
typename number2,
int spacedim>
290 template <
int dim,
typename number2,
int spacedim>
302 template <
int dim,
typename number2,
int spacedim>
313 template <
int dim,
typename number2,
int spacedim>
329 template <
int dim,
class OutVector,
int spacedim>
338 template <
int dim,
class OutVector,
int spacedim>
347 template <
int dim,
class InVector,
int spacedim>
351 const InVector &src)
const;
378template <
typename number>
381 const unsigned int mg_component)
383 selected_component = component;
384 mg_selected_component =
std::vector< unsigned int > mg_target_component
ComponentMask component_mask
ComponentMask mg_component_mask
std::vector< unsigned int > target_component
std::vector< types::global_dof_index > component_start
std::vector< std::shared_ptr< BlockSparseMatrix< double > > > prolongation_matrices
std::vector< std::vector< std::pair< types::global_dof_index, unsigned int > > > copy_to_and_from_indices
std::vector< std::vector< types::global_dof_index > > mg_component_start
std::vector< std::shared_ptr< BlockSparsityPattern > > prolongation_sparsities
void build(const DoFHandler< dim, spacedim > &dof_handler)
std::vector< std::vector< types::global_dof_index > > sizes
std::size_t memory_consumption() const
std::vector< std::set< types::global_dof_index > > boundary_indices
void do_copy_to_mg(const DoFHandler< dim, spacedim > &mg_dof, MGLevelObject< Vector< number > > &dst, const InVector &src) const
void copy_to_mg(const DoFHandler< dim, spacedim > &mg_dof, MGLevelObject< Vector< number > > &dst, const Vector< number2 > &src) const
std::size_t memory_consumption() const
void do_copy_from_mg_add(const DoFHandler< dim, spacedim > &mg_dof, OutVector &dst, const MGLevelObject< Vector< number > > &src) const
void copy_from_mg_add(const DoFHandler< dim, spacedim > &mg_dof, BlockVector< number2 > &dst, const MGLevelObject< Vector< number > > &src) const
ObserverPointer< const AffineConstraints< double > > constraints
void do_copy_from_mg(const DoFHandler< dim, spacedim > &mg_dof, OutVector &dst, const MGLevelObject< Vector< number > > &src) const
void copy_from_mg(const DoFHandler< dim, spacedim > &mg_dof, BlockVector< number2 > &dst, const MGLevelObject< Vector< number > > &src) const
virtual void prolongate(const unsigned int to_level, Vector< number > &dst, const Vector< number > &src) const override
unsigned int mg_selected_component
unsigned int selected_component
void copy_to_mg(const DoFHandler< dim, spacedim > &mg_dof, MGLevelObject< Vector< number > > &dst, const BlockVector< number2 > &src) const
virtual ~MGTransferSelect() override=default
void build(const DoFHandler< dim, spacedim > &dof, unsigned int selected, unsigned int mg_selected, const std::vector< unsigned int > &target_component=std::vector< unsigned int >(), const std::vector< unsigned int > &mg_target_component=std::vector< unsigned int >(), const std::vector< std::set< types::global_dof_index > > &boundary_indices=std::vector< std::set< types::global_dof_index > >())
void select(const unsigned int component, const unsigned int mg_component=numbers::invalid_unsigned_int)
void copy_from_mg(const DoFHandler< dim, spacedim > &mg_dof, Vector< number2 > &dst, const MGLevelObject< Vector< number > > &src) const
virtual void restrict_and_add(const unsigned int from_level, Vector< number > &dst, const Vector< number > &src) const override
std::vector< IndexSet > interface_dofs
void copy_from_mg_add(const DoFHandler< dim, spacedim > &mg_dof, Vector< number2 > &dst, const MGLevelObject< Vector< number > > &src) const
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_CXX20_REQUIRES(condition)
#define DEAL_II_NAMESPACE_CLOSE
#define DeclException0(Exception0)
static ::ExceptionBase & ExcMatricesNotBuilt()
static const unsigned int invalid_unsigned_int