Skip to content
Snippets Groups Projects
Commit 2a922a8b authored by Jonathan Youett's avatar Jonathan Youett
Browse files

Add some documentation

parent 7668a682
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -157,10 +157,13 @@ public: ...@@ -157,10 +157,13 @@ public:
return *this; return *this;
} }
//! Return inside element
Entity inside() const { Entity inside() const {
return inside_; return inside_;
} }
//! Return outside element, throws exception for boundary elements
Entity outside() const { Entity outside() const {
if (!neighbor()) if (!neighbor())
DUNE_THROW(GridError, "There is no neighbor!"); DUNE_THROW(GridError, "There is no neighbor!");
...@@ -186,6 +189,7 @@ public: ...@@ -186,6 +189,7 @@ public:
: outsideIntersect_.indexInInside(); : outsideIntersect_.indexInInside();
} }
//! Return GeometryType of the intersection
GeometryType type () const { GeometryType type () const {
if (outside_.level() > inside_.level()) if (outside_.level() > inside_.level())
return outsideIntersect_.type(); return outsideIntersect_.type();
...@@ -214,6 +218,7 @@ public: ...@@ -214,6 +218,7 @@ public:
return insideIntersect_.centerUnitOuterNormal(); return insideIntersect_.centerUnitOuterNormal();
} }
//! Return the global geometry of the intersection
Geometry geometry () const { Geometry geometry () const {
if (outsideIntersect_.inside().level() >= insideIntersect_.inside().level()) if (outsideIntersect_.inside().level() >= insideIntersect_.inside().level())
return Geometry(GeometryImpl(outsideIntersect_.geometry())); return Geometry(GeometryImpl(outsideIntersect_.geometry()));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment