16 #ifndef dealii_mg_tools_h 17 #define dealii_mg_tools_h 19 #include <deal.II/base/config.h> 21 #include <deal.II/base/index_set.h> 23 #include <deal.II/dofs/dof_handler.h> 24 #include <deal.II/dofs/dof_tools.h> 30 DEAL_II_NAMESPACE_OPEN
32 template <
int dim,
int spacedim>
53 template <
int dim,
int spacedim>
57 const unsigned int level,
58 std::vector<unsigned int> & row_lengths,
65 template <
int dim,
int spacedim>
68 const unsigned int level,
69 std::vector<unsigned int> & row_lengths,
82 template <
typename DoFHandlerType,
typename SparsityPatternType>
85 SparsityPatternType & sparsity,
86 const unsigned int level);
96 template <
int dim,
typename SparsityPatternType,
int spacedim>
99 SparsityPatternType & sparsity,
100 const unsigned int level);
108 template <
int dim,
typename SparsityPatternType,
int spacedim>
111 SparsityPatternType & sparsity,
112 const unsigned int level);
122 template <
int dim,
typename SparsityPatternType,
int spacedim>
125 SparsityPatternType & sparsity,
126 const unsigned int level,
138 template <
int dim,
typename SparsityPatternType,
int spacedim>
142 SparsityPatternType & sparsity,
143 const unsigned int level,
153 template <
typename DoFHandlerType,
typename SparsityPatternType>
157 SparsityPatternType & sparsity,
158 const unsigned int level);
167 template <
typename DoFHandlerType>
170 const DoFHandlerType & dof_handler,
171 std::vector<std::vector<types::global_dof_index>> &dofs_per_block,
172 std::vector<unsigned int> target_block = {});
181 template <
int dim,
int spacedim>
185 std::vector<std::vector<types::global_dof_index>> &result,
186 const bool only_once =
false,
187 std::vector<unsigned int> target_component = {});
208 template <
int dim,
int spacedim>
214 std::vector<std::set<types::global_dof_index>> &boundary_indices,
224 template <
int dim,
int spacedim>
229 std::vector<IndexSet> &boundary_indices,
239 template <
int dim,
int spacedim>
242 const std::set<types::boundary_id> &boundary_ids,
243 std::vector<IndexSet> & boundary_indices,
251 template <
int dim,
int spacedim>
254 std::vector<IndexSet> & interface_dofs);
264 template <
int dim,
int spacedim>
265 DEAL_II_DEPRECATED
void 268 std::vector<std::set<types::global_dof_index>> &non_interface_dofs);
279 template <
int dim,
int spacedim>
286 DEAL_II_NAMESPACE_CLOSE