diff --git a/dumux/implicit/subcontrolvolumeface.hh b/dumux/implicit/subcontrolvolumeface.hh index d9261e819a3da2488c4439afbbcf78f87d4f11a1..f0f964e81d54c8a73c1d9cf418c953e1ff959c88 100644 --- a/dumux/implicit/subcontrolvolumeface.hh +++ b/dumux/implicit/subcontrolvolumeface.hh @@ -49,6 +49,7 @@ public: const GlobalPosition& ipGlobal, const GlobalPosition& unitOuterNormal, IndexType scvfIndex, + IndexType indexInElement, const std::vector<IndexType>& scvIndices, bool boundary = false) : geometry_(geometry), @@ -56,6 +57,7 @@ public: ipLocal_(geometry.local(ipGlobal)), unitOuterNormal_(unitOuterNormal), scvfIndex_(scvfIndex), + indexInElement_(indexInElement), scvIndices_(scvIndices), boundary_(boundary) {} @@ -121,12 +123,19 @@ public: return scvfIndex_; } + //! The global index of this sub control volume face + IndexType indexInElement() const + { + return indexInElement_; + } + private: Geometry geometry_; GlobalPosition ipGlobal_; LocalPosition ipLocal_; GlobalPosition unitOuterNormal_; IndexType scvfIndex_; + IndexType indexInElement_; std::vector<IndexType> scvIndices_; bool boundary_; };