From 42c075d80abd9760a5339b190eb53d7aa4ce43e6 Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 15 Apr 2009 12:31:57 +0100 Subject: [PATCH] constructSize bug if construct from synchronised info --- .../meshes/polyMesh/mapPolyMesh/mapDistribute/mapDistribute.C | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/OpenFOAM/meshes/polyMesh/mapPolyMesh/mapDistribute/mapDistribute.C b/src/OpenFOAM/meshes/polyMesh/mapPolyMesh/mapDistribute/mapDistribute.C index f4cbe6e2f3..4bd093e641 100644 --- a/src/OpenFOAM/meshes/polyMesh/mapPolyMesh/mapDistribute/mapDistribute.C +++ b/src/OpenFOAM/meshes/polyMesh/mapPolyMesh/mapDistribute/mapDistribute.C @@ -205,7 +205,7 @@ Foam::mapDistribute::mapDistribute const labelList& recvProcs ) : - constructSize_(sendProcs.size()), + constructSize_(0), schedulePtr_() { if (sendProcs.size() != recvProcs.size()) @@ -266,6 +266,8 @@ Foam::mapDistribute::mapDistribute { // I am the receiver. constructMap_[sendProc][nRecv[sendProc]++] = sampleI; + // Largest entry inside constructMap + constructSize_ = sampleI+1; } } }