From d7963e6496bd63507e093cef60a7c4d21c543431 Mon Sep 17 00:00:00 2001 From: laurence Date: Thu, 1 Aug 2013 17:16:34 +0100 Subject: [PATCH] BUG: sortPointEdges: Break out of loop if cannot get back to starting edge. Print Warning. --- .../PatchTools/PatchToolsSortPoints.C | 42 +++++++++++++++++-- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/src/OpenFOAM/meshes/primitiveMesh/PatchTools/PatchToolsSortPoints.C b/src/OpenFOAM/meshes/primitiveMesh/PatchTools/PatchToolsSortPoints.C index 5cc074ba96..e6e507caaa 100644 --- a/src/OpenFOAM/meshes/primitiveMesh/PatchTools/PatchToolsSortPoints.C +++ b/src/OpenFOAM/meshes/primitiveMesh/PatchTools/PatchToolsSortPoints.C @@ -49,7 +49,7 @@ Foam::PatchTools::sortedPointEdges const labelListList& faceEdges = p.faceEdges(); // create the lists for the various results. (resized on completion) - labelListList sortedPointEdges(pointEdges.size()); + labelListList sortedPointEdges(pointEdges); DynamicList