Skip to content
Snippets Groups Projects
Commit 34806371 authored by graham's avatar graham
Browse files

BUG: must trigger polyMesh_.tetBasePtIs(); in all Cloud constructors.

parent cb45c789
No related branches found
No related tags found
No related merge requests found
...@@ -84,6 +84,11 @@ Foam::Cloud<ParticleType>::Cloud ...@@ -84,6 +84,11 @@ Foam::Cloud<ParticleType>::Cloud
nTrackingRescues_(), nTrackingRescues_(),
cellWallFacesPtr_() cellWallFacesPtr_()
{ {
// 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();
IDLList<ParticleType>::operator=(particles); IDLList<ParticleType>::operator=(particles);
} }
...@@ -105,6 +110,11 @@ Foam::Cloud<ParticleType>::Cloud ...@@ -105,6 +110,11 @@ Foam::Cloud<ParticleType>::Cloud
nTrackingRescues_(), nTrackingRescues_(),
cellWallFacesPtr_() cellWallFacesPtr_()
{ {
// 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();
IDLList<ParticleType>::operator=(particles); IDLList<ParticleType>::operator=(particles);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment