diff --git a/dumux/decoupled/common/gridadapt.hh b/dumux/decoupled/common/gridadapt.hh index e9c72b41dfbadf811ddb6a9cbfb35185ce791ee2..d939006c2679c56f74720a55fec55c09ad9aaa61 100644 --- a/dumux/decoupled/common/gridadapt.hh +++ b/dumux/decoupled/common/gridadapt.hh @@ -399,7 +399,7 @@ private: */ void forceRefineRatio(int maxLevelDelta = 1) { - LeafGridView leafView = problem_.gridView(); + LeafGridView leafGridView = problem_.gridView(); // delete all existing marks problem_.grid().postAdapt(); bool done; @@ -407,16 +407,16 @@ private: { // run through all cells done=true; - for (LeafIterator eIt = leafView.template begin<0>(); - eIt!=leafView.template end<0>(); ++eIt) + for (LeafIterator eIt = leafGridView.template begin<0>(); + eIt!=leafGridView.template end<0>(); ++eIt) { // only mark non-ghost elements if (eIt->partitionType() == Dune::GhostEntity) continue; // run through all neighbor-cells (intersections) - LeafIntersectionIterator isItend = leafView.iend(*eIt); - for (LeafIntersectionIterator isIt = leafView.ibegin(*eIt); isIt!= isItend; ++isIt) + LeafIntersectionIterator isItend = leafGridView.iend(*eIt); + for (LeafIntersectionIterator isIt = leafGridView.ibegin(*eIt); isIt!= isItend; ++isIt) { const typename LeafIntersectionIterator::Intersection intersection = *isIt; if(!intersection.neighbor()) diff --git a/dumux/implicit/adaptive/gridadapt.hh b/dumux/implicit/adaptive/gridadapt.hh index 806bcb96746283a932a090ea471a0b7a1237eb3b..32e1caa7d857bf9f4aa97e875630a6b80994d94b 100644 --- a/dumux/implicit/adaptive/gridadapt.hh +++ b/dumux/implicit/adaptive/gridadapt.hh @@ -372,7 +372,7 @@ private: */ void forceRefineRatio(int maxLevelDelta = 1) { - LeafGridView leafView = problem_.gridView(); + LeafGridView leafGridView = problem_.gridView(); // delete all existing marks problem_.grid().postAdapt(); bool done; @@ -380,16 +380,16 @@ private: { // run through all cells done=true; - for (LeafIterator eIt = leafView.template begin<0>(); - eIt!=leafView.template end<0>(); ++eIt) + for (LeafIterator eIt = leafGridView.template begin<0>(); + eIt!=leafGridView.template end<0>(); ++eIt) { // only mark non-ghost elements if (eIt->partitionType() == Dune::GhostEntity) continue; // run through all neighbor-cells (intersections) - LeafIntersectionIterator isItend = leafView.iend(*eIt); - for (LeafIntersectionIterator isIt = leafView.ibegin(*eIt); isIt!= isItend; ++isIt) + LeafIntersectionIterator isItend = leafGridView.iend(*eIt); + for (LeafIntersectionIterator isIt = leafGridView.ibegin(*eIt); isIt!= isItend; ++isIt) { const typename LeafIntersectionIterator::Intersection intersection = *isIt; if(!intersection.neighbor())