BUG: Cloud: force parallel construction of tetBasePtIs
This commit is contained in:
parent
04cc2bf911
commit
3e480df8a7
1 changed files with 7 additions and 1 deletions
|
|
@ -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<ParticleType>::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<ParticleType>, *this, pIter)
|
||||
{
|
||||
ParticleType& p = pIter();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue