From 3805066f28b65b9dd7ae61be53b065a86f14d66e Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Tue, 13 Jan 2015 12:39:54 +0000
Subject: [PATCH] Fixes the issue that elementMapper cannot be updated from the
 problem file needed for adaptive grid methods. The functions returning the
 elementMapper and vertexMapper are now overloaded with a non constant version
 of the functions. Reviewed by Bernd.

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@14040 2fb0f335-1f38-0410-981e-8018bf24f1b0
---
 dumux/implicit/common/implicitproblem.hh | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/dumux/implicit/common/implicitproblem.hh b/dumux/implicit/common/implicitproblem.hh
index 047a1a9607..2812c8f0dd 100644
--- a/dumux/implicit/common/implicitproblem.hh
+++ b/dumux/implicit/common/implicitproblem.hh
@@ -663,17 +663,29 @@ public:
     { return bBoxMax_; }
 
     /*!
-     * \brief Returns the mapper for vertices to indices.
+     * \brief Returns the mapper for vertices to indices for constant grids.
      */
     const VertexMapper &vertexMapper() const
     { return vertexMapper_; }
 
     /*!
-     * \brief Returns the mapper for elements to indices.
+     * \brief Returns the mapper for elements to indices for constant grids.
      */
     const ElementMapper &elementMapper() const
     { return elementMapper_; }
 
+    /*!
+     * \brief Returns the mapper for vertices to indices for possibly adaptive grids.
+     */
+    VertexMapper &vertexMapper() 
+    { return vertexMapper_; }
+
+    /*!
+     * \brief Returns the mapper for elements to indices for possibly adaptive grids.
+     */
+    ElementMapper &elementMapper() 
+    { return elementMapper_; }
+
     /*!
      * \brief Returns TimeManager object used by the simulation
      */
-- 
GitLab