diff --git a/dumux/decoupled/common/gridadapt.hh b/dumux/decoupled/common/gridadapt.hh index d9ebebe636e1ae9b77cc6dd7578f3d7d996bdd4f..1a4e753dac15bcdcb8bb883aef435f03f66a9efc 100644 --- a/dumux/decoupled/common/gridadapt.hh +++ b/dumux/decoupled/common/gridadapt.hh @@ -178,11 +178,10 @@ public: LeafIntersectionIterator isend = problem_.gridView().iend(*eIt); for(LeafIntersectionIterator is = problem_.gridView().ibegin(*eIt); is != isend; ++is) { - const typename LeafIntersectionIterator::Intersection intersection = *is; - if(!intersection.neighbor()) + if(!is->neighbor()) continue; - const Entity &outside = *intersection.outside(); + const Entity &outside = *is->outside(); if ((problem_.grid().getMark(outside) > 0) || (outside.level()>eIt.level())) coarsenPossible = false; @@ -291,11 +290,10 @@ private: LeafIntersectionIterator isend = problem_.gridView().iend(entity); for(LeafIntersectionIterator is = problem_.gridView().ibegin(entity); is != isend; ++is) { - const typename LeafIntersectionIterator::Intersection intersection = *is; - if(!intersection.neighbor()) + if(!is->neighbor()) continue; - const Entity &outside =*intersection.outside(); + const Entity &outside =*is->outside(); if ((outside.level()<levelMax_) && (outside.level()<entity.level())) {