Skip to content
Snippets Groups Projects
Commit 44de26a3 authored by Benjamin Faigle's avatar Benjamin Faigle
Browse files

changes in adaptive models for dune 2.1 for Intersections

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@6305 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 1822cb16
No related branches found
No related tags found
No related merge requests found
...@@ -178,11 +178,10 @@ public: ...@@ -178,11 +178,10 @@ public:
LeafIntersectionIterator isend = problem_.gridView().iend(*eIt); LeafIntersectionIterator isend = problem_.gridView().iend(*eIt);
for(LeafIntersectionIterator is = problem_.gridView().ibegin(*eIt); is != isend; ++is) for(LeafIntersectionIterator is = problem_.gridView().ibegin(*eIt); is != isend; ++is)
{ {
const typename LeafIntersectionIterator::Intersection intersection = *is; if(!is->neighbor())
if(!intersection.neighbor())
continue; continue;
const Entity &outside = *intersection.outside(); const Entity &outside = *is->outside();
if ((problem_.grid().getMark(outside) > 0) if ((problem_.grid().getMark(outside) > 0)
|| (outside.level()>eIt.level())) || (outside.level()>eIt.level()))
coarsenPossible = false; coarsenPossible = false;
...@@ -291,11 +290,10 @@ private: ...@@ -291,11 +290,10 @@ private:
LeafIntersectionIterator isend = problem_.gridView().iend(entity); LeafIntersectionIterator isend = problem_.gridView().iend(entity);
for(LeafIntersectionIterator is = problem_.gridView().ibegin(entity); is != isend; ++is) for(LeafIntersectionIterator is = problem_.gridView().ibegin(entity); is != isend; ++is)
{ {
const typename LeafIntersectionIterator::Intersection intersection = *is; if(!is->neighbor())
if(!intersection.neighbor())
continue; continue;
const Entity &outside =*intersection.outside(); const Entity &outside =*is->outside();
if ((outside.level()<levelMax_) if ((outside.level()<levelMax_)
&& (outside.level()<entity.level())) && (outside.level()<entity.level()))
{ {
......
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