Commit cffcbc34 authored by mattijs's avatar mattijs
Browse files

BUG: snappyHexMesh: growing cellZones. Fixes #1528

parent 4678638a
......@@ -2448,6 +2448,19 @@ void Foam::meshRefinement::growCellZone
}
}
// Fix any left-over unvisited cells
if (backgroundZoneID != -2)
{
forAll(cellToZone, celli)
{
if (cellToZone[celli] == -2)
{
cellToZone[celli] = backgroundZoneID;
nBackgrounded++;
}
}
}
// Make sure to unset faces of changed cell
......
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