22 parent_cell_and_facet = 0b11
29 using bitmask_t = std::underlying_type_t<Option>;
30 bitmask_t a_native =
static_cast<bitmask_t
>(a);
31 bitmask_t b_native =
static_cast<bitmask_t
>(b);
32 return static_cast<Option>(a_native | b_native);
38 using bitmask_t = std::underlying_type_t<Option>;
39 bitmask_t a_native =
static_cast<bitmask_t
>(a);
41 return (a_native & facet_native) == facet_native;
47 using bitmask_t = std::underlying_type_t<Option>;
48 bitmask_t a_native =
static_cast<bitmask_t
>(a);
50 return (a_native & facet_native) == facet_native;
Mesh refinement algorithms.
Definition dolfinx_refinement.h:8
constexpr Option operator|(Option a, Option b)
Combine two refinement options into one, both flags will be set for the resulting option.
Definition option.h:27
constexpr bool option_parent_cell(Option a)
Check if parent_cell flag is set.
Definition option.h:45
Option
Options for data to compute during mesh refinement.
Definition option.h:16
constexpr bool option_parent_facet(Option a)
Check if parent_facet flag is set.
Definition option.h:36