16#ifndef dealii_block_info_h
17#define dealii_block_info_h
32template <
int dim,
int spacedim>
109 template <
int dim,
int spacedim>
112 bool levels_only =
false,
113 bool active_only =
false);
119 template <
int dim,
int spacedim>
151 renumber(
const unsigned int i)
const;
170 print(OS &stream)
const;
184 template <
class Archive>
186 serialize(Archive &ar,
const unsigned int );
271 for (
unsigned int i = 0; i <
global().
size(); ++i)
275 if (
local().size() == 0)
277 os <<
"local dofs not initialized" << std::endl;
283 for (
unsigned int i = 0; i <
local().
size(); ++i)
288 for (
unsigned int l = 0;
l <
levels.size(); ++
l)
290 os <<
"level " << std::setw(2) <<
l <<
" dofs " << std::setw(5)
292 for (
unsigned int i = 0; i <
level(
l).
size(); ++i)
309template <
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_NAMESPACE_CLOSE
#define AssertIndexRange(index, range)
std::enable_if< std::is_fundamental< T >::value, std::size_t >::type memory_consumption(const T &t)
Tensor< 2, dim, Number > l(const Tensor< 2, dim, Number > &F, const Tensor< 2, dim, Number > &dF_dt)