Skip to content
Snippets Groups Projects
Commit 7514b97b authored by Timo Koch's avatar Timo Koch
Browse files

[box] Expose cached element index

parent d1978e82
No related branches found
No related tags found
1 merge request!3349Feature/cvfe improvements
...@@ -189,6 +189,10 @@ public: ...@@ -189,6 +189,10 @@ public:
const Element& element() const const Element& element() const
{ return *element_; } { return *element_; }
//! The bound element's index in the grid view
GridIndexType elementIndex() const
{ return eIdx_; }
//! The grid geometry we are a restriction of //! The grid geometry we are a restriction of
const GridGeometry& gridGeometry() const const GridGeometry& gridGeometry() const
{ return ggCache_->gridGeometry(); } { return ggCache_->gridGeometry(); }
...@@ -363,6 +367,10 @@ public: ...@@ -363,6 +367,10 @@ public:
const Element& element() const const Element& element() const
{ return *element_; } { return *element_; }
//! The bound element's index in the grid view
GridIndexType elementIndex() const
{ return eIdx_; }
//! The grid geometry we are a restriction of //! The grid geometry we are a restriction of
const GridGeometry& gridGeometry() const const GridGeometry& gridGeometry() const
{ return ggCache_->gridGeometry(); } { return ggCache_->gridGeometry(); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment