6 : global_element_id_(global_element_id), type_(type)
11 : global_primitive_id_(other.global_primitive_id_), local_primitive_id_(other.local_primitive_id_),
12 global_element_id_(other.global_element_id_), type_(other.type_)
24 std::vector<int> to_remove;
26 for (
int j = 0; j <
size(); ++j)
28 const int loc_id = (*this)[j];
29 for (
int i = 0; i < other.
size(); ++i)
31 if (other[i] == loc_id)
33 to_remove.push_back(j);
39 for (
int j : to_remove)
51 for (
int i = 0; i < lb.
size(); ++i)
Boundary primitive IDs for a single element.
void add_boundary_primitive(const int global_index, const int local_index)
Mark a boundary primitive as a part of the global boundary.
void remove_tag_for_index(const int index)
Remove a boundary primitive from the element.
std::vector< int > global_primitive_id_
Global IDs of the boundary primitives.
LocalBoundary(const int global_element_id, BoundaryType type)
Construct a new Local Boundary object for a given element.
std::vector< int > local_primitive_id_
Local IDs of the boundary primitives.
int size() const
Number of boundary primitives for the element.
int global_primitive_id(const int index) const
Get the i-th boundary primitive's global ID.
void remove_from(const LocalBoundary &other)
Remove all boundary primitives that are also in another LocalBoundary.
std::ostream & operator<<(std::ostream &os, const LocalBoundary &lb)