From 1bcb454f6daa8b92144791a02cee98faa79a6244 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Wed, 5 Jul 2017 10:46:50 +0200 Subject: [PATCH] STYLE: hash constructors with power-of-two - use 1024 instead of 1000 since it will be changed internally to 1024 anyhow. --- applications/test/PackedList2/Test-PackedList2.C | 2 +- .../utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C | 4 ++-- .../surface/surfaceMeshTriangulate/surfaceMeshTriangulate.C | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/applications/test/PackedList2/Test-PackedList2.C b/applications/test/PackedList2/Test-PackedList2.C index 26981b484f..ce9b15ed51 100644 --- a/applications/test/PackedList2/Test-PackedList2.C +++ b/applications/test/PackedList2/Test-PackedList2.C @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) std::vector stlVector(n, true); labelHashSet emptyHash; - labelHashSet fullHash(1000); + labelHashSet fullHash(1024); for (label i = 0; i < n; i++) { fullHash.insert(i); diff --git a/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C b/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C index 3e91747415..28d5d4dfc6 100644 --- a/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C +++ b/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C @@ -393,7 +393,7 @@ void extractSurface // Collect sizes. Hash on names to handle local-only patches (e.g. // processor patches) - HashTable