From 1cf1a74fa40371a0b54206810a560c99e1efba2c Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Wed, 28 Feb 2018 18:39:10 +0000 Subject: [PATCH] Refactor mapping tools for partially filled PtrLists. Consistency changes --- .../parallelProcessing/reconstructPar/reconstructPar.C | 3 ++- .../reconstructParMesh/reconstructParMesh.C | 9 +++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/applications/utilities/parallelProcessing/reconstructPar/reconstructPar.C b/applications/utilities/parallelProcessing/reconstructPar/reconstructPar.C index 51dcb16f8..b7809680b 100644 --- a/applications/utilities/parallelProcessing/reconstructPar/reconstructPar.C +++ b/applications/utilities/parallelProcessing/reconstructPar/reconstructPar.C @@ -485,7 +485,8 @@ int main(int argc, char *argv[]) faMesh aMesh(mesh); - processorFaMeshes procFaMeshes(procMeshes.meshes()); + // Create mesh addressing by reading from files + processorFaMeshes procFaMeshes(procMeshes.meshes(), true); faFieldReconstructor faReconstructor ( diff --git a/applications/utilities/parallelProcessing/reconstructParMesh/reconstructParMesh.C b/applications/utilities/parallelProcessing/reconstructParMesh/reconstructParMesh.C index c5a01c0c0..794ee2250 100644 --- a/applications/utilities/parallelProcessing/reconstructParMesh/reconstructParMesh.C +++ b/applications/utilities/parallelProcessing/reconstructParMesh/reconstructParMesh.C @@ -136,7 +136,12 @@ int main(int argc, char *argv[]) } // Read all meshes and addressing to reconstructed mesh - processorMeshesReconstructor procMeshes(databases, regionName); + processorMeshesReconstructor procMeshes + ( + databases, + regionName, + true // read meshes + ); autoPtr meshPtr = procMeshes.reconstructMesh(runTime); @@ -629,7 +634,7 @@ int main(int argc, char *argv[]) faMesh aMesh(mesh); - processorFaMeshes procFaMeshes(procMeshes.meshes()); + processorFaMeshes procFaMeshes(procMeshes.meshes(), true); faFieldReconstructor faReconstructor (