From 9f57fa9904736fd4ca1c74df3b5d674f67e41065 Mon Sep 17 00:00:00 2001
From: DennisGlaeser <dennis.glaeser@iws.uni-stuttgart.de>
Date: Thu, 25 Feb 2016 21:57:56 +0100
Subject: [PATCH] [Implicit][FluxVarVector] Add update method for a single
 fluxVar

---
 dumux/implicit/fluxvariablesvector.hh | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/dumux/implicit/fluxvariablesvector.hh b/dumux/implicit/fluxvariablesvector.hh
index b371bd7f60..c80cf37d0c 100644
--- a/dumux/implicit/fluxvariablesvector.hh
+++ b/dumux/implicit/fluxvariablesvector.hh
@@ -39,6 +39,7 @@ class FluxVariablesVector
     using GridView = typename GET_PROP_TYPE(TypeTag, GridView);
     using IndexType = typename GridView::IndexSet::IndexType;
     using FluxVariables = typename GET_PROP_TYPE(TypeTag, FluxVariables);
+    using SubControlVolumeFace = typename GET_PROP_TYPE(TypeTag, SubControlVolumeFace);
 
 public:
     void update(const Problem& problem)
@@ -54,6 +55,17 @@ public:
         }
     }
 
+    void update(const Problem& problem, const SubControlVolumeFace& scvFace)
+    {
+        (*this)[scvFace.index()].update(problem, scvf);
+    }
+
+    void update(const Problem& problem, const IndexType scvFaceIndex)
+    {
+        auto&& scvFace = problem.model().fvGeometries().SubControlVolumeFace(scvFaceIndex);
+        (*this)[scvFace.index()].update(problem, scvf);
+    }
+
     const FluxVariables& operator [](IndexType scvfIdx) const
     {
         return fluxVars_[scvfIdx];
-- 
GitLab