From cbc932f11a946ce3a18f8d2c9cb23ece0ce2ddc6 Mon Sep 17 00:00:00 2001
From: Martin Schneider <martin.schneider@iws.uni-stuttgart.de>
Date: Wed, 15 Jul 2015 14:38:46 +0000
Subject: [PATCH] [adaptive]

Corrction of storePrimVars routine.


Reviewed by Bernd

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@15082 2fb0f335-1f38-0410-981e-8018bf24f1b0
---
 dumux/implicit/adaptive/adaptationhelper.hh | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/dumux/implicit/adaptive/adaptationhelper.hh b/dumux/implicit/adaptive/adaptationhelper.hh
index ae29217d7d..fbc7823932 100644
--- a/dumux/implicit/adaptive/adaptationhelper.hh
+++ b/dumux/implicit/adaptive/adaptationhelper.hh
@@ -148,11 +148,9 @@ public:
 					if (eIt->level() > 0)
 					{
 						ElementPointer epFather = eIt->father();
-						int indexI = this->elementIndex(problem, *epFather);
 						AdaptedValues& adaptedValuesFather = adaptationMap_[*epFather];
 						adaptedValuesFather.count += 1;
-						storeAdaptationValues(adaptedValues, adaptedValuesFather,
-											problem.model().curSol()[indexI]);
+						storeAdaptationValues(adaptedValues, adaptedValuesFather);
 					}
 
 				}
@@ -349,8 +347,7 @@ public:
      * \param fatherElement The element of the father
      */
     static void storeAdaptationValues(AdaptedValues& adaptedValues,
-                                    AdaptedValues& adaptedValuesFather,
-									const PrimaryVariables& u)
+                                    AdaptedValues& adaptedValuesFather)
     {
     	if(!isBox)
     	{
-- 
GitLab