From 028cafdb325506696f28ab720b7bd7506b19ad17 Mon Sep 17 00:00:00 2001 From: Vuko Vukcevic Date: Sun, 17 Feb 2019 00:32:00 +0100 Subject: [PATCH] Slight refactorisation in processorMeshesReconstructor::reconstructMesh --- .../finiteVolume/processorMeshesRebuild.C | 137 +++++++++--------- .../processorMeshesReconstructor.H | 2 - 2 files changed, 70 insertions(+), 69 deletions(-) diff --git a/src/decompositionMethods/decomposeReconstruct/reconstructTools/finiteVolume/processorMeshesRebuild.C b/src/decompositionMethods/decomposeReconstruct/reconstructTools/finiteVolume/processorMeshesRebuild.C index 9d9655059..e677381a4 100644 --- a/src/decompositionMethods/decomposeReconstruct/reconstructTools/finiteVolume/processorMeshesRebuild.C +++ b/src/decompositionMethods/decomposeReconstruct/reconstructTools/finiteVolume/processorMeshesRebuild.C @@ -437,15 +437,13 @@ Foam::processorMeshesReconstructor::reconstructMesh(const Time& db) } } - // Prepare patch reconstruction - HashTable patchNameLookup - ( - meshes_[firstValidMesh()].boundaryMesh().size() - ); - DynamicList patchTypeLookup - ( - meshes_[firstValidMesh()].boundaryMesh().size() - ); + // Get first boundary mesh size + const label firstBndryMeshSize = + meshes_[firstValidMesh()].boundaryMesh().size(); + + // Prepare patch reconstruction. Note: default key type is word in HashTable + HashTable