From f916e88ef1e00e1bcba316fa0ba1f791b934fd2a Mon Sep 17 00:00:00 2001
From: Thomas Fetzer <thomas.fetzer@iws.uni-stuttgart.de>
Date: Wed, 23 Mar 2016 11:54:24 +0100
Subject: [PATCH] [2cstokes2p2c] Use new fluxVars facility

---
 .../2cstokes2p2c/stokesnccouplinglocalresidual.hh   | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/dumux/multidomain/2cstokes2p2c/stokesnccouplinglocalresidual.hh b/dumux/multidomain/2cstokes2p2c/stokesnccouplinglocalresidual.hh
index bfa130aa15..06448f6f05 100644
--- a/dumux/multidomain/2cstokes2p2c/stokesnccouplinglocalresidual.hh
+++ b/dumux/multidomain/2cstokes2p2c/stokesnccouplinglocalresidual.hh
@@ -137,12 +137,13 @@ public:
                         continue;
 
                     const int boundaryFaceIdx = this->fvGeometry_().boundaryFaceIndex(fIdx, faceVertexIdx);
-                    const FluxVariables boundaryVars(this->problem_(),
-                                                     this->element_(),
-                                                     this->fvGeometry_(),
-                                                     boundaryFaceIdx,
-                                                     this->curVolVars_(),
-                                                     true);
+                    FluxVariables boundaryVars;
+                    boundaryVars.update(this->problem_(),
+                                        this->element_(),
+                                        this->fvGeometry_(),
+                                        boundaryFaceIdx,
+                                        this->curVolVars_(),
+                                        true);
                     const VolumeVariables &volVars = this->curVolVars_()[scvIdx];
 
                     // set velocity normal to the interface
-- 
GitLab