12#ifndef DUMUX_BOUNDARY_FLAG_HH
13#define DUMUX_BOUNDARY_FLAG_HH
31 : flag_(invalidFlag_) {}
33 template<
class Intersection>
34 requires requires(
const Intersection& i) { i.boundary(); i.boundarySegmentIndex(); }
39 flag_ = i.boundarySegmentIndex();
48 operator bool()
const {
return flag_ != invalidFlag_; }
51 static constexpr value_type invalidFlag_ = std::numeric_limits<value_type>::max();
Boundary flag to store e.g. in sub control volume faces.
Definition boundaryflag.hh:63
std::size_t value_type
Definition boundaryflag.hh:28
BoundarySegmentIndexFlag(const Intersection &i)
Definition boundaryflag.hh:35
BoundarySegmentIndexFlag(value_type flag)
Construct from a flag value, for faces derived from other faces rather than from an intersection.
Definition boundaryflag.hh:43
BoundarySegmentIndexFlag()
Definition boundaryflag.hh:30
value_type get() const
Definition boundaryflag.hh:46