mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Cloud: force parallel construction of tetBasePtIs
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -413,6 +413,12 @@ void Foam::Cloud<ParticleType>::autoMap
|
|||||||
// polyMesh_.clearCellTree();
|
// polyMesh_.clearCellTree();
|
||||||
cellWallFacesPtr_.clear();
|
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<ParticleType>, *this, pIter)
|
forAllIter(typename Cloud<ParticleType>, *this, pIter)
|
||||||
{
|
{
|
||||||
ParticleType& p = pIter();
|
ParticleType& p = pIter();
|
||||||
|
|||||||
Reference in New Issue
Block a user