Skip to content
Snippets Groups Projects
Commit cbc932f1 authored by Martin Schneider's avatar Martin Schneider
Browse files

[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
parent a5fa68e4
No related branches found
No related tags found
No related merge requests found
...@@ -148,11 +148,9 @@ public: ...@@ -148,11 +148,9 @@ public:
if (eIt->level() > 0) if (eIt->level() > 0)
{ {
ElementPointer epFather = eIt->father(); ElementPointer epFather = eIt->father();
int indexI = this->elementIndex(problem, *epFather);
AdaptedValues& adaptedValuesFather = adaptationMap_[*epFather]; AdaptedValues& adaptedValuesFather = adaptationMap_[*epFather];
adaptedValuesFather.count += 1; adaptedValuesFather.count += 1;
storeAdaptationValues(adaptedValues, adaptedValuesFather, storeAdaptationValues(adaptedValues, adaptedValuesFather);
problem.model().curSol()[indexI]);
} }
} }
...@@ -349,8 +347,7 @@ public: ...@@ -349,8 +347,7 @@ public:
* \param fatherElement The element of the father * \param fatherElement The element of the father
*/ */
static void storeAdaptationValues(AdaptedValues& adaptedValues, static void storeAdaptationValues(AdaptedValues& adaptedValues,
AdaptedValues& adaptedValuesFather, AdaptedValues& adaptedValuesFather)
const PrimaryVariables& u)
{ {
if(!isBox) if(!isBox)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment