16#ifndef dealii_block_info_h
17#define dealii_block_info_h
33template <
int dim,
int spacedim>
111 template <
int dim,
int spacedim>
114 bool levels_only =
false,
115 bool active_only =
false);
121 template <
int dim,
int spacedim>
153 renumber(
const unsigned int i)
const;
172 print(OS &stream)
const;
186 template <
class Archive>
188 serialize(Archive &ar,
const unsigned int );
273 for (
unsigned int i = 0; i <
global().
size(); ++i)
277 if (
local().size() == 0)
279 os <<
"local dofs not initialized" << std::endl;
285 for (
unsigned int i = 0; i <
local().
size(); ++i)
290 for (
unsigned int l = 0; l <
levels.size(); ++l)
292 os <<
"level " << std::setw(2) << l <<
" dofs " << std::setw(5)
293 <<
level(l).total_size() <<
" blocks";
294 for (
unsigned int i = 0; i <
level(l).size(); ++i)
295 os <<
' ' << std::setw(5) <<
level(l).block_size(i);
311template <
class Archive>
size_type block_size(const unsigned int i) const
size_type total_size() const
unsigned int size() const
A small class collecting the different BlockIndices involved in global, multilevel and local computat...
unsigned int base_element(const unsigned int i) const
std::vector< types::global_dof_index > local_renumbering
std::vector< BlockIndices > levels
The multilevel block structure.
unsigned int n_base_elements() const
void serialize(Archive &ar, const unsigned int)
BlockIndices bi_global
The block structure of the global system.
std::size_t memory_consumption() const
BlockIndices bi_local
The block structure of the cell systems.
types::global_dof_index renumber(const unsigned int i) const
std::vector< unsigned int > base_elements
const BlockIndices & level(unsigned int level) const
const BlockIndices & global() const
const BlockIndices & local() const
void print(OS &stream) const
void initialize_local(const DoFHandler< dim, spacedim > &)
Initialize block structure on cells and compute renumbering between cell dofs and block cell dofs.
void initialize(const DoFHandler< dim, spacedim > &, bool levels_only=false, bool active_only=false)
Fill the object with values describing block structure of the DoFHandler.
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_CXX20_REQUIRES(condition)
#define DEAL_II_NAMESPACE_CLOSE
#define AssertIndexRange(index, range)
std::enable_if_t< std::is_fundamental< T >::value, std::size_t > memory_consumption(const T &t)