14 int64_t size = parent.
capacity(primitive_type);
17 throw std::runtime_error(
18 "Cannot use same_simplex_dimension_bijection on meshes with simplex dimensions");
22 if (size != child.
capacity(primitive_type)) {
23 throw std::runtime_error(
24 "Cannot use same_simplex_dimension_bijection on meshes with different capacities");
27 std::vector<int64_t> ps(size);
28 std::iota(ps.begin(), ps.end(), 0);
int64_t capacity(PrimitiveType type) const
read in the m_capacities return the upper bound for the number of entities of the given dimension
PrimitiveType top_simplex_type() const
std::vector< std::array< Tuple, 2 > > same_simplex_dimension_surjection(const Mesh &parent, const Mesh &child, const std::vector< int64_t > &parent_simplices)
std::vector< std::array< Tuple, 2 > > same_simplex_dimension_bijection(const Mesh &parent, const Mesh &child)