conformalVoronoiMesh: Fixed processor patch reordering

This commit is contained in:
Will Bainbridge
2018-10-05 08:49:31 +01:00
parent 77dd7556c9
commit 85cdf55073
2 changed files with 8 additions and 0 deletions

View File

@ -847,6 +847,8 @@ private:
const fileName& instance,
const pointField& points,
faceList& faces,
labelList& owner,
labelList& neighbour,
const wordList& patchNames,
const PtrList<dictionary>& patchDicts
) const;

View File

@ -591,6 +591,8 @@ void Foam::conformalVoronoiMesh::reorderProcessorPatches
const fileName& instance,
const pointField& points,
faceList& faces,
labelList& owner,
labelList& neighbour,
const wordList& patchNames,
const PtrList<dictionary>& patchDicts
) const
@ -730,6 +732,8 @@ void Foam::conformalVoronoiMesh::reorderProcessorPatches
if (nReorderedFaces > 0)
{
inplaceReorder(faceMap, faces);
inplaceReorder(faceMap, owner);
inplaceReorder(faceMap, neighbour);
}
// Rotate faces (rotation is already in new face indices).
@ -791,6 +795,8 @@ void Foam::conformalVoronoiMesh::writeMesh
instance,
points,
faces,
owner,
neighbour,
patchNames,
patchDicts
);