BUG: extrudeMesh - partial fix for incorrect behaviour - see #1964

Changed IO flag so that new mesh is created
- was using old 'faces', 'owner' etc but then used the new patch starts

Corrected logic for contMap in polyTopoChange
This commit is contained in:
Mattijs Janssens
2020-12-18 17:34:39 +00:00
committed by Andrew Heather
parent 04f3b26ba6
commit 6d6c204745
2 changed files with 6 additions and 2 deletions

View File

@ -142,7 +142,11 @@ void Foam::polyTopoChange::countMap
if (oldCelli >= 0)
{
if (reverseMap[oldCelli] == newCelli)
if
(
oldCelli < reverseMap.size()
&& reverseMap[oldCelli] == newCelli
)
{
// unchanged
}