diff --git a/applications/utilities/mesh/manipulation/renumberMesh/renumberMesh.C b/applications/utilities/mesh/manipulation/renumberMesh/renumberMesh.C index d03f24cd7c2e4f442f2143b95c0ba59028420f28..af968f8120ff14fc37411db26fa67b86c36c494a 100644 --- a/applications/utilities/mesh/manipulation/renumberMesh/renumberMesh.C +++ b/applications/utilities/mesh/manipulation/renumberMesh/renumberMesh.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anispulation | ------------------------------------------------------------------------------- License @@ -494,7 +494,13 @@ autoPtr<mapPolyMesh> reorderMesh newFlipMap[i] = fZone.flipMap()[i]; } } - fZone.resetAddressing(newAddressing, newFlipMap); + labelList newToOld; + sortedOrder(newAddressing, newToOld); + fZone.resetAddressing + ( + UIndirectList<label>(newAddressing, newToOld)(), + UIndirectList<bool>(newFlipMap, newToOld)() + ); } } // Re-do the cellZones @@ -508,6 +514,7 @@ autoPtr<mapPolyMesh> reorderMesh reverseCellOrder, cellZones[zoneI] )(); + Foam::sort(cellZones[zoneI]); } }