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

@ -704,7 +704,7 @@ int main(int argc, char *argv[])
regionName, regionName,
runTimeExtruded.constant(), runTimeExtruded.constant(),
runTimeExtruded, runTimeExtruded,
IOobject::READ_IF_PRESENT, // Read fv* if present IOobject::NO_READ, // Do not read primitives, do read fv*
IOobject::AUTO_WRITE, IOobject::AUTO_WRITE,
false false
), ),

View File

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