|
Reference documentation for deal.II version 9.2.0
|
\(\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\}}\)
Go to the documentation of this file.
16 #ifndef dealii_mg_transfer_block_h
17 #define dealii_mg_transfer_block_h
41 template <
int dim,
int spacedim>
90 template <
int dim,
int spacedim>
103 template <
int dim,
int spacedim>
136 mutable std::vector<std::vector<types::global_dof_index>>
sizes;
170 std::vector<std::vector<std::vector<std::pair<unsigned int, unsigned int>>>>
200 template <
typename number>
229 template <
int dim,
int spacedim>
232 const std::vector<bool> &
selected);
242 template <
int dim,
int spacedim>
246 const std::vector<bool> &
selected);
269 template <
int dim,
typename number2,
int spacedim>
281 template <
int dim,
typename number2,
int spacedim>
292 template <
int dim,
typename number2,
int spacedim>
329 template <
typename number>
360 template <
int dim,
int spacedim>
377 template <
int dim,
int spacedim>
387 select(
const unsigned int block);
405 template <
int dim,
typename number2,
int spacedim>
409 const Vector<number2> & src)
const;
417 template <
int dim,
typename number2,
int spacedim>
420 Vector<number2> & dst,
428 template <
int dim,
typename number2,
int spacedim>
431 Vector<number2> & dst,
441 template <
int dim,
typename number2,
int spacedim>
453 template <
int dim,
typename number2,
int spacedim>
464 template <
int dim,
typename number2,
int spacedim>
480 template <
int dim,
class OutVector,
int spacedim>
485 const unsigned int offset)
const;
490 template <
int dim,
class OutVector,
int spacedim>
495 const unsigned int offset)
const;
500 template <
int dim,
class InVector,
int spacedim>
504 const InVector & src,
505 const unsigned int offset)
const;
515 template <
typename number>
519 selected_block = block;
virtual void prolongate(const unsigned int to_level, BlockVector< number > &dst, const BlockVector< number > &src) const override
void build_matrices(const DoFHandler< dim, spacedim > &dof, const DoFHandler< dim, spacedim > &mg_dof)
void copy_to_mg(const DoFHandler< dim, spacedim > &dof_handler, MGLevelObject< BlockVector< number >> &dst, const BlockVector< number2 > &src) const
std::vector< bool > selected
std::vector< types::global_dof_index > block_start
void build(const DoFHandler< dim, spacedim > &dof_handler)
void build(const DoFHandler< dim, spacedim > &dof_handler, const std::vector< bool > &selected)
virtual ~MGTransferBlock() override
std::vector< std::vector< types::global_dof_index > > sizes
void do_copy_to_mg(const DoFHandler< dim, spacedim > &dof_handler, MGLevelObject< Vector< number >> &dst, const InVector &src, const unsigned int offset) const
virtual void prolongate(const unsigned int to_level, Vector< number > &dst, const Vector< number > &src) const override
void build_matrices(const DoFHandler< dim, spacedim > &dof, const DoFHandler< dim, spacedim > &mg_dof, const std::vector< bool > &selected)
void copy_from_mg_add(const DoFHandler< dim, spacedim > &dof_handler, BlockVector< number2 > &dst, const MGLevelObject< BlockVector< number >> &src) const
unsigned int selected_block
virtual void restrict_and_add(const unsigned int from_level, Vector< number > &dst, const Vector< number > &src) const override
std::vector< std::vector< types::global_dof_index > > mg_block_start
SmartPointer< VectorMemory< Vector< number > >, MGTransferBlock< number > > memory
void build(const DoFHandler< dim, spacedim > &dof_handler, unsigned int selected)
std::vector< std::vector< std::vector< std::pair< unsigned int, unsigned int > > > > copy_indices
#define DEAL_II_NAMESPACE_OPEN
void copy_from_mg_add(const DoFHandler< dim, spacedim > &dof_handler, Vector< number2 > &dst, const MGLevelObject< Vector< number >> &src) const
std::vector< std::shared_ptr< BlockSparsityPattern > > prolongation_sparsities
#define DEAL_II_DEPRECATED
void build_matrices(const DoFHandler< dim, spacedim > &dof, const DoFHandler< dim, spacedim > &mg_dof, unsigned int selected)
virtual void restrict_and_add(const unsigned int from_level, BlockVector< number > &dst, const BlockVector< number > &src) const override
std::size_t memory_consumption() const
std::size_t memory_consumption() const
void copy_from_mg(const DoFHandler< dim, spacedim > &dof_handler, BlockVector< number2 > &dst, const MGLevelObject< BlockVector< number >> &src) const
void select(const unsigned int block)
static ::ExceptionBase & ExcMatricesNotBuilt()
#define DeclException0(Exception0)
std::vector< number > factors
virtual ~MGTransferBlockSelect() override=default
std::vector< std::shared_ptr< BlockSparseMatrix< double > > > prolongation_matrices
void do_copy_from_mg_add(const DoFHandler< dim, spacedim > &dof_handler, OutVector &dst, const MGLevelObject< Vector< number >> &src, const unsigned int offset) const
std::vector< unsigned int > mg_block
void copy_from_mg(const DoFHandler< dim, spacedim > &dof_handler, Vector< number2 > &dst, const MGLevelObject< Vector< number >> &src) const
void initialize(const std::vector< number > &factors, VectorMemory< Vector< number >> &memory)
void copy_to_mg(const DoFHandler< dim, spacedim > &dof_handler, MGLevelObject< Vector< number >> &dst, const Vector< number2 > &src) const
#define DEAL_II_NAMESPACE_CLOSE
SmartPointer< const MGConstrainedDoFs, MGTransferBlockBase > mg_constrained_dofs
void do_copy_from_mg(const DoFHandler< dim, spacedim > &dof_handler, OutVector &dst, const MGLevelObject< Vector< number >> &src, const unsigned int offset) const