From 005d4b1405deb9465c5acd65fdb1945a22884adf Mon Sep 17 00:00:00 2001
From: DennisGlaeser <dennis.glaeser@iws.uni-stuttgart.de>
Date: Tue, 5 Jul 2016 12:10:27 +0200
Subject: [PATCH] [implicit] scvface gets its own local index

---
 dumux/implicit/subcontrolvolumeface.hh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/dumux/implicit/subcontrolvolumeface.hh b/dumux/implicit/subcontrolvolumeface.hh
index d9261e819a..f0f964e81d 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_;
 };
-- 
GitLab