diff --git a/dumux/implicit/adaptive/adaptationhelper.hh b/dumux/implicit/adaptive/adaptationhelper.hh index ae29217d7d5e51f80a809a13662e52eaef439ced..fbc7823932138da5ba15b56efe6f4245b0a5d95a 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) {