From a0a830135d81d0081b93f98116aa510417b026b9 Mon Sep 17 00:00:00 2001 From: mattijs Date: Mon, 9 Jun 2014 11:09:51 +0100 Subject: [PATCH] BUG: Cloud: force parallel construction of tetBasePtIs --- src/lagrangian/basic/Cloud/Cloud.C | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lagrangian/basic/Cloud/Cloud.C b/src/lagrangian/basic/Cloud/Cloud.C index 3773de6606..8c36579974 100644 --- a/src/lagrangian/basic/Cloud/Cloud.C +++ b/src/lagrangian/basic/Cloud/Cloud.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-2014 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -413,6 +413,12 @@ void Foam::Cloud::autoMap // polyMesh_.clearCellTree(); cellWallFacesPtr_.clear(); + // Ask for the tetBasePtIs to trigger all processors to build + // them, otherwise, if some processors have no particles then + // there is a comms mismatch. + polyMesh_.tetBasePtIs(); + + forAllIter(typename Cloud, *this, pIter) { ParticleType& p = pIter();