BUG: polyTopoChange: sort faces before rotating

This commit is contained in:
mattijs
2013-01-28 14:09:58 +00:00
parent 81a5440d30
commit 2405f213d7

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -2052,6 +2052,9 @@ void Foam::polyTopoChange::reorderCoupledFaces
if (anyChanged) if (anyChanged)
{ {
// Reorder faces according to oldToNew.
reorderCompactFaces(oldToNew.size(), oldToNew);
// Rotate faces (rotation is already in new face indices). // Rotate faces (rotation is already in new face indices).
forAll(rotation, faceI) forAll(rotation, faceI)
{ {
@ -2060,9 +2063,6 @@ void Foam::polyTopoChange::reorderCoupledFaces
inplaceRotateList<List, label>(faces_[faceI], rotation[faceI]); inplaceRotateList<List, label>(faces_[faceI], rotation[faceI]);
} }
} }
// Reorder faces according to oldToNew.
reorderCompactFaces(oldToNew.size(), oldToNew);
} }
} }