From a2c8736f2336dea9e056461edbbafcf58dce0e06 Mon Sep 17 00:00:00 2001 From: laurence Date: Tue, 11 Dec 2012 17:10:10 +0000 Subject: [PATCH] ENH: calcPointEdges: Use invertManyToMany. Comment out the edge sorting. --- .../PrimitivePatchPointAddressing.C | 98 ++++++++++++++----- 1 file changed, 73 insertions(+), 25 deletions(-) diff --git a/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatchPointAddressing.C b/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatchPointAddressing.C index 5782820c57..28bae4939c 100644 --- a/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatchPointAddressing.C +++ b/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatchPointAddressing.C @@ -28,6 +28,7 @@ Description #include "PrimitivePatch.H" #include "SLList.H" +#include "ListOps.H" // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // @@ -62,34 +63,11 @@ calcPointEdges() const << abort(FatalError); } - const edgeList& e = edges(); - - // set up storage for pointEdges - List > pointEdges(meshPoints().size()); - - forAll(e, edgeI) - { - pointEdges[e[edgeI].start()].append(edgeI); - pointEdges[e[edgeI].end()].append(edgeI); - } - - // sort out the list - pointEdgesPtr_ = new labelListList(pointEdges.size()); + pointEdgesPtr_ = new labelListList(meshPoints().size()); labelListList& pe = *pointEdgesPtr_; - forAll(pointEdges, pointI) - { - const SLList