16 #ifndef dealii__block_info_h 17 #define dealii__block_info_h 19 #include <deal.II/base/subscriptor.h> 20 #include <deal.II/base/memory_consumption.h> 21 #include <deal.II/lac/block_indices.h> 25 DEAL_II_NAMESPACE_OPEN
109 template <
int dim,
int spacedim>
116 template <
int dim,
int spacedim>
148 unsigned int n_base_elements()
const;
153 unsigned int base_element (
const unsigned int i)
const;
160 print(OS &stream)
const;
166 std::size_t memory_consumption ()
const;
172 template <
class Archive>
173 void serialize (Archive &ar,
174 const unsigned int );
236 return local_renumbering[i];
246 return base_elements[i];
254 return base_elements.size();
264 os <<
"global dofs " << std::setw(5) << global().total_size() <<
" blocks";
265 for (
unsigned int i=0; i<global().size(); ++i)
266 os <<
' ' << std::setw(5) << global().block_size(i);
269 if (local().size() == 0)
271 os <<
"local dofs not initialized" << std::endl;
275 os <<
"local dofs " << std::setw(5) << local().total_size() <<
" blocks";
276 for (
unsigned int i=0; i<local().size(); ++i)
277 os <<
' ' << std::setw(5) << local().block_size(i);
281 for (
unsigned int l=0; l<levels.size(); ++l)
283 os <<
"level " << std::setw(2) << l <<
" dofs " << std::setw(5) << level(l).total_size() <<
" blocks";
284 for (
unsigned int i=0; i<level(l).size(); ++i)
285 os <<
' ' << std::setw(5) << level(l).block_size(i);
302 template <
class Archive>
310 ar &local_renumbering;
314 DEAL_II_NAMESPACE_CLOSE
std::vector< types::global_dof_index > local_renumbering
std::size_t memory_consumption() const
#define AssertIndexRange(index, range)
unsigned int global_dof_index
unsigned int base_element(const unsigned int i) const
types::global_dof_index renumber(const unsigned int i) const
BlockIndices bi_global
The block structure of the global system.
void serialize(Archive &ar, const unsigned int)
unsigned int n_base_elements() const
std_cxx11::enable_if< std_cxx11::is_fundamental< T >::value, std::size_t >::type memory_consumption(const T &t)
std::vector< BlockIndices > levels
The multilevel block structure.
const BlockIndices & level(unsigned int level) const
const BlockIndices & local() const
A small class collecting the different BlockIndices involved in global, multilevel and local computat...
const BlockIndices & global() const
void print(OS &stream) const
BlockIndices bi_local
The block structure of the cell systems.
std::vector< unsigned int > base_elements