diff --git a/dumux/discretization/box/fvelementgeometry.hh b/dumux/discretization/box/fvelementgeometry.hh index 514d63759a4cd6befcc3622f56866d1e712bdf0f..2b8c535900139f0f69a837a5ae4f769ad73b849f 100644 --- a/dumux/discretization/box/fvelementgeometry.hh +++ b/dumux/discretization/box/fvelementgeometry.hh @@ -189,6 +189,10 @@ public: const Element& element() const { return *element_; } + //! The bound element's index in the grid view + GridIndexType elementIndex() const + { return eIdx_; } + //! The grid geometry we are a restriction of const GridGeometry& gridGeometry() const { return ggCache_->gridGeometry(); } @@ -363,6 +367,10 @@ public: const Element& element() const { return *element_; } + //! The bound element's index in the grid view + GridIndexType elementIndex() const + { return eIdx_; } + //! The grid geometry we are a restriction of const GridGeometry& gridGeometry() const { return ggCache_->gridGeometry(); }