From eb4937a5066593fdcd97ceed16c4d6a2a906ec7c Mon Sep 17 00:00:00 2001
From: Kilian Weishaupt <kilian.weishaupt@iws.uni-stuttgart.de>
Date: Mon, 24 Jul 2017 17:34:42 +0200
Subject: [PATCH] [cc][globalVolVars] Provide volVars with same interface as
 box

*volVars(elementIdx, localIdx)
---
 .../discretization/cellcentered/globalvolumevariables.hh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/dumux/discretization/cellcentered/globalvolumevariables.hh b/dumux/discretization/cellcentered/globalvolumevariables.hh
index 8a9b9a7883..b70f940cf0 100644
--- a/dumux/discretization/cellcentered/globalvolumevariables.hh
+++ b/dumux/discretization/cellcentered/globalvolumevariables.hh
@@ -124,6 +124,15 @@ public:
 
     VolumeVariables& volVars(const SubControlVolume scv)
     { return volumeVariables_[scv.dofIndex()]; }
+
+    // required for compatibility with the box method
+    const VolumeVariables& volVars(const IndexType scvIdx, const IndexType localIdx) const
+    { return volumeVariables_[scvIdx]; }
+
+    // required for compatibility with the box method
+    VolumeVariables& volVars(const IndexType scvIdx, const IndexType localIdx)
+    { return volumeVariables_[scvIdx]; }
+
 private:
     const Problem& problem_() const
     { return *problemPtr_; }
-- 
GitLab