15 return a.input.global_id() < b.input.global_id();
19 return value.input.global_id() < facet_id;
30 -> AltData::const_iterator
32 assert(std::is_sorted(m_facet_maps.begin(), m_facet_maps.end(), sort_op));
35 auto it = std::lower_bound(m_facet_maps.begin(), m_facet_maps.end(), input_cell, sort_int_op);
36 auto end = m_facet_maps.cend();
38 if (it != end && it->input.global_id() != input_cell) {
48 std::array<int64_t,2> dat;
49 std::copy(new_eids.begin(),new_eids.end(),dat.begin());
50 return add_facet(mesh, edge_tuple,dat);
57 return m_facet_maps.emplace_back(sd.dart_from_tuple(edge_tuple), nfa);
61 ->
const std::array<int64_t, 2>&
63 auto it = get_alternative_facets_it(input_cell);
64 assert(it != m_facet_maps.cend());
65 return it->new_facet_indices;
74 assert(alts_it != m_facet_maps.end());
78 int64_t new_global_cid = alts_it->new_gid(mesh_pt, sd.valid_index_from_tuple(t));
static const SimplexDart & get_singleton(wmtk::PrimitiveType simplex_type)
static std::vector< int64_t > request_simplex_indices(Mesh &mesh, const PrimitiveType type, int64_t count)
SplitAlternateFacetOptionData Data
Tuple get_alternative(const PrimitiveType mesh_pt, const Tuple &t, const PrimitiveType simplex_dimension) const
const Data & add_facet(const wmtk::Mesh &mesh, const wmtk::Tuple &edge_tuple, const std::array< int64_t, 2 > &new_facet_indices)
const std::array< int64_t, 2 > & get_alternative_facets(const int64_t &input_facet) const
AltData::const_iterator get_alternative_facets_it(const int64_t &input_facet) const
static int8_t local_eid(const Tuple &t)
static int64_t global_cid(const Tuple &t)
static int8_t local_vid(const Tuple &t)
static int8_t local_fid(const Tuple &t)