16#ifndef dealii_mg_tools_h
17#define dealii_mg_tools_h
34template <
int dim,
int spacedim>
54 template <
int dim,
int spacedim>
58 const unsigned int level,
59 std::vector<unsigned int> & row_lengths,
66 template <
int dim,
int spacedim>
69 const unsigned int level,
70 std::vector<unsigned int> & row_lengths,
88 typename SparsityPatternType,
89 typename number =
double>
93 SparsityPatternType & sparsity,
94 const unsigned int level,
96 const bool keep_constrained_dofs =
true);
106 template <
int dim,
typename SparsityPatternType,
int spacedim>
109 SparsityPatternType & sparsity,
110 const unsigned int level);
118 template <
int dim,
typename SparsityPatternType,
int spacedim>
121 SparsityPatternType & sparsity,
122 const unsigned int level);
132 template <
int dim,
typename SparsityPatternType,
int spacedim>
135 SparsityPatternType & sparsity,
136 const unsigned int level,
148 template <
int dim,
typename SparsityPatternType,
int spacedim>
152 SparsityPatternType & sparsity,
153 const unsigned int level,
163 template <
int dim,
int spacedim,
typename SparsityPatternType>
167 SparsityPatternType & sparsity,
168 const unsigned int level);
177 template <
int dim,
int spacedim>
181 std::vector<std::vector<types::global_dof_index>> &dofs_per_block,
182 std::vector<unsigned int> target_block = {});
191 template <
int dim,
int spacedim>
195 std::vector<std::vector<types::global_dof_index>> &result,
196 const bool only_once =
false,
197 std::vector<unsigned int> target_component = {});
218 template <
int dim,
int spacedim>
224 std::vector<std::set<types::global_dof_index>> &boundary_indices,
234 template <
int dim,
int spacedim>
239 std::vector<IndexSet> &boundary_indices,
249 template <
int dim,
int spacedim>
252 const std::set<types::boundary_id> &boundary_ids,
253 std::vector<IndexSet> & boundary_indices,
261 template <
int dim,
int spacedim>
264 std::vector<IndexSet> & interface_dofs);
275 template <
int dim,
int spacedim>
296 template <
int dim,
int spacedim>
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE