15#ifndef dealii_mg_constrained_dofs_h
16#define dealii_mg_constrained_dofs_h
32template <
int dim,
int spacedim>
47 using size_dof = std::vector<std::set<types::global_dof_index>>::size_type;
73 template <
int dim,
int spacedim>
89 template <
int dim,
int spacedim>
93 const std::set<types::boundary_id> &boundary_ids,
102 template <
int dim,
int spacedim>
105 const unsigned int level,
140 template <
int dim,
int spacedim>
144 const unsigned int first_vector_component);
237 template <
typename Number>
240 const unsigned int level,
242 const bool add_refinement_edge_indices,
243 const bool add_level_constraints,
298 const unsigned int level,
302 const IndexSet &interface_dofs_on_level =
bool is_element(const size_type index) const
std::vector< IndexSet > refinement_edge_indices
std::vector< AffineConstraints< double > > user_constraints
void make_no_normal_flux_constraints(const DoFHandler< dim, spacedim > &dof, const types::boundary_id bid, const unsigned int first_vector_component)
bool is_interface_matrix_entry(const unsigned int level, const types::global_dof_index i, const types::global_dof_index j) const
void make_zero_boundary_constraints(const DoFHandler< dim, spacedim > &dof, const std::set< types::boundary_id > &boundary_ids, const ComponentMask &component_mask={})
std::vector< IndexSet > boundary_indices
void add_boundary_indices(const DoFHandler< dim, spacedim > &dof, const unsigned int level, const IndexSet &boundary_indices)
bool at_refinement_edge(const unsigned int level, const types::global_dof_index index) const
void initialize(const DoFHandler< dim, spacedim > &dof, const MGLevelObject< IndexSet > &level_relevant_dofs=MGLevelObject< IndexSet >())
bool is_boundary_index(const unsigned int level, const types::global_dof_index index) const
void merge_constraints(AffineConstraints< Number > &constraints, const unsigned int level, const bool add_boundary_indices, const bool add_refinement_edge_indices, const bool add_level_constraints, const bool add_user_constraints) const
void clear_user_constraints()
std::vector< AffineConstraints< double > > level_constraints
bool have_boundary_indices() const
void add_user_constraints(const unsigned int level, const AffineConstraints< double > &constraints_on_level)
const IndexSet & get_refinement_edge_indices(unsigned int level) const
const AffineConstraints< double > & get_user_constraint_matrix(const unsigned int level) const
const AffineConstraints< double > & get_level_constraints(const unsigned int level) const
const IndexSet & get_boundary_indices(const unsigned int level) const
std::vector< std::set< types::global_dof_index > >::size_type size_dof
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_CXX20_REQUIRES(condition)
#define DEAL_II_NAMESPACE_CLOSE
#define AssertIndexRange(index, range)