BUG: snappyHexMesh: growing cellZones. Fixes #1528

This commit is contained in:
mattijs
2020-03-30 16:58:32 +01:00
parent 4678638abb
commit cffcbc343e

View File

@ -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