16 #ifndef dealii_block_info_h 17 #define dealii_block_info_h 19 #include <deal.II/base/memory_consumption.h> 20 #include <deal.II/base/subscriptor.h> 22 #include <deal.II/lac/block_indices.h> 26 DEAL_II_NAMESPACE_OPEN
30 template <
int dim,
int spacedim>
34 template <
int dim,
int spacedim>
112 template <
int dim,
int spacedim>
115 bool levels_only =
false,
116 bool active_only =
false);
122 template <
int dim,
int spacedim>
154 renumber(
const unsigned int i)
const;
173 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)
294 for (
unsigned int i = 0; i <
level(l).
size(); ++i)
311 template <
class Archive>
323 DEAL_II_NAMESPACE_CLOSE
const BlockIndices & local() const
std::vector< types::global_dof_index > local_renumbering
#define AssertIndexRange(index, range)
size_type block_size(const unsigned int i) const
unsigned int base_element(const unsigned int i) const
size_type total_size() const
const BlockIndices & level(unsigned int level) const
void print(OS &stream) const
std::size_t memory_consumption() const
unsigned int n_base_elements() const
BlockIndices bi_global
The block structure of the global system.
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.
void serialize(Archive &ar, const unsigned int)
unsigned int global_dof_index
void initialize_local(const DoFHandler< dim, spacedim > &)
Initialize block structure on cells and compute renumbering between cell dofs and block cell dofs...
std::vector< BlockIndices > levels
The multilevel block structure.
types::global_dof_index renumber(const unsigned int i) const
A small class collecting the different BlockIndices involved in global, multilevel and local computat...
unsigned int size() const
BlockIndices bi_local
The block structure of the cell systems.
const BlockIndices & global() const
std::vector< unsigned int > base_elements
std::enable_if< std::is_fundamental< T >::value, std::size_t >::type memory_consumption(const T &t)