From 9d2f3c46b231fce267600d49fbe7939167e2e940 Mon Sep 17 00:00:00 2001 From: Timo Koch <timo.koch@iws.uni-stuttgart.de> Date: Thu, 25 Feb 2016 17:25:35 +0100 Subject: [PATCH] [scvf] Add global index of the scvf to itself --- dumux/implicit/subcontrolvolumeface.hh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dumux/implicit/subcontrolvolumeface.hh b/dumux/implicit/subcontrolvolumeface.hh index 2a92474ce4..986b56cd02 100644 --- a/dumux/implicit/subcontrolvolumeface.hh +++ b/dumux/implicit/subcontrolvolumeface.hh @@ -44,11 +44,13 @@ class SubControlVolumeFace public: SubControlVolumeFace(const Geometry& geometry, const GlobalPosition& unitOuterNormal, + IndexType scvfIndex, const std::vector<IndexType>& scvIndices, const std::vector<IndexType>& volVarsIndices, bool boundary = false) : geometry_(geometry), unitOuterNormal_(unitOuterNormal), + scvfIndex_(scvfIndex), scvIndices_(scvIndices), volVarsIndices_(volVarsIndices), boundary_(boundary) {} @@ -108,9 +110,16 @@ public: return volVarsIndices_[1]; } + //! The global index of this sub control volume face + IndexType index() const + { + return scvfIndex_; + } + private: Geometry geometry_; GlobalPosition unitOuterNormal_; + IndexType scvfIndex_; std::vector<IndexType> scvIndices_, volVarsIndices_; bool boundary_; }; -- GitLab