From dc8179f5e08d5e2b5245b8ccee700206d1bcd467 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Sun, 16 Dec 2018 14:21:45 +0100 Subject: [PATCH] ENH: add some storage queries to PrimitivePatch - for quantities such as face area/normals etc, it can be useful to calculate directly and avoid the overhead of caching all the values. STYLE: comments, use HashTable lookup() method in whichPoint() --- .../PrimitivePatch/PrimitivePatch.C | 13 +------ .../PrimitivePatch/PrimitivePatch.H | 37 +++++++++++-------- .../PrimitivePatch/PrimitivePatchAddressing.C | 3 +- .../PrimitivePatch/PrimitivePatchBdryPoints.C | 5 +-- .../PrimitivePatch/PrimitivePatchEdgeLoops.C | 3 +- .../PrimitivePatchLocalPointOrder.C | 3 +- .../PrimitivePatch/PrimitivePatchMeshData.C | 23 ++++-------- .../PrimitivePatchPointAddressing.C | 6 +-- 8 files changed, 39 insertions(+), 54 deletions(-) diff --git a/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatch.C b/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatch.C index 5cc8103d9c..d82ca60a81 100644 --- a/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatch.C +++ b/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatch.C @@ -498,17 +498,8 @@ whichPoint const label gp ) const { - Map