Commit ad89051b authored by Mattijs Janssens's avatar Mattijs Janssens Committed by graham
Browse files

markSurfaceRefinement fixes

parent df0d196b
......@@ -641,7 +641,7 @@ Foam::label Foam::meshRefinement::markSurfaceRefinement
}
}
}
else if (refineCell[own] != -1)
else if (refineCell[own] == -1)
{
// boundary face with unmarked owner
......@@ -658,18 +658,25 @@ Foam::label Foam::meshRefinement::markSurfaceRefinement
if (surfI != -1)
{
if
(
!markForRefine
// Make sure it is my side that wants refinement.
label surfaceMinLevel =
surfaces_.minLevelField(surfI)[hit.index()];
if (surfaceMinLevel > cellLevel[own])
{
if
(
surfI,
nAllowRefine,
refineCell[own],
nRefine
!markForRefine
(
surfI,
nAllowRefine,
refineCell[own],
nRefine
)
)
)
{
break;
{
break;
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment