Skip to content

Commit

Permalink
Make binary representation explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
schnellerhase committed Aug 21, 2024
1 parent c05f66d commit a45215e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cpp/dolfinx/refinement/option.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ namespace dolfinx::refinement
/// @brief Options for data to compute during mesh refinement.
enum class Option : std::uint8_t
{
none = 0,
parent_facet = 1 << 0,
parent_cell = 1 << 1,
parent_cell_and_facet = parent_facet | parent_cell
none = 0b00,
parent_facet = 0b01,
parent_cell = 0b10,
parent_cell_and_facet = 0b11
};

/// @brief Combine two refinement options into one, both flags will be set for
Expand Down

0 comments on commit a45215e

Please sign in to comment.