27#ifndef EWOMS_FRACTURE_MAPPER_HH
28#define EWOMS_FRACTURE_MAPPER_HH
41template <
class TypeTag>
46 FractureEdge(
unsigned edgeVertex1Idx,
unsigned edgeVertex2Idx)
47 : i_(std::min(edgeVertex1Idx, edgeVertex2Idx)),
48 j_(std::max(edgeVertex1Idx, edgeVertex2Idx))
51 bool operator<(
const FractureEdge& e)
const
52 {
return i_ < e.i_ || (i_ == e.i_ && j_ < e.j_); }
55 {
return i_ == e.i_ && j_ == e.j_; }
76 fractureEdges_.insert(FractureEdge(vertexIdx1, vertexIdx2));
77 fractureVertices_.insert(vertexIdx1);
78 fractureVertices_.insert(vertexIdx2);
87 {
return fractureVertices_.count(vertexIdx) > 0; }
97 FractureEdge tmp(vertex1Idx, vertex2Idx);
98 return fractureEdges_.count(tmp) > 0;
102 std::set<FractureEdge> fractureEdges_;
103 std::set<unsigned> fractureVertices_;
Stores the topology of fractures.
Definition: fracturemapper.hh:43
bool isFractureEdge(unsigned vertex1Idx, unsigned vertex2Idx) const
Returns true iff a fracture is associated with a given edge.
Definition: fracturemapper.hh:95
FractureMapper()
Constructor.
Definition: fracturemapper.hh:65
bool isFractureVertex(unsigned vertexIdx) const
Returns true iff a fracture cuts through a given vertex.
Definition: fracturemapper.hh:86
void addFractureEdge(unsigned vertexIdx1, unsigned vertexIdx2)
Marks an edge as having a fracture.
Definition: fracturemapper.hh:74
Definition: blackoilboundaryratevector.hh:37
bool operator==(const aligned_allocator< T1, Alignment > &, const aligned_allocator< T2, Alignment > &) noexcept
Definition: alignedallocator.hh:210
The Opm property system, traits with inheritance.