From 511489a40b65eae06ae72184e0ad560156930e7a Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Sun, 13 Sep 2015 22:21:53 +0100 Subject: [PATCH] globalMeshData: Changed the communicator for the reductions Avoids problems with overlapping communicationbetween these reductions and the calculation of deltaCoeffs. This is a temporary fix while code reorganizations are undertaken to ensure the globalMeshData is updated before deltaCoeffs are requested. Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1780 --- .../polyMesh/globalMeshData/globalMeshData.C | 30 ++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/src/OpenFOAM/meshes/polyMesh/globalMeshData/globalMeshData.C b/src/OpenFOAM/meshes/polyMesh/globalMeshData/globalMeshData.C index 2739e828b..b36a0e957 100644 --- a/src/OpenFOAM/meshes/polyMesh/globalMeshData/globalMeshData.C +++ b/src/OpenFOAM/meshes/polyMesh/globalMeshData/globalMeshData.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -2746,22 +2746,44 @@ void Foam::globalMeshData::updateMesh() Pout<< "globalMeshData : merge dist:" << tolDim << endl; } + // *** Temporary hack to avoid problems with overlapping communication + // *** between these reductions and the calculation of deltaCoeffs + label comm = UPstream::worldComm + 1; + // Total number of faces. - nTotalFaces_ = returnReduce(mesh_.nFaces(), sumOp