markSurfaceRefinement fixes

This commit is contained in:
mattijs
2008-06-24 21:42:47 +01:00
committed by graham
parent df0d196bed
commit ad89051b8c

View File

@ -641,7 +641,7 @@ Foam::label Foam::meshRefinement::markSurfaceRefinement
} }
} }
} }
else if (refineCell[own] != -1) else if (refineCell[own] == -1)
{ {
// boundary face with unmarked owner // boundary face with unmarked owner
@ -657,6 +657,12 @@ Foam::label Foam::meshRefinement::markSurfaceRefinement
); );
if (surfI != -1) if (surfI != -1)
{
// Make sure it is my side that wants refinement.
label surfaceMinLevel =
surfaces_.minLevelField(surfI)[hit.index()];
if (surfaceMinLevel > cellLevel[own])
{ {
if if
( (
@ -675,6 +681,7 @@ Foam::label Foam::meshRefinement::markSurfaceRefinement
} }
} }
} }
}
if (faceI < surfaceIndex_.size()) if (faceI < surfaceIndex_.size())
{ {