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

BUG: Comms mismatch when some procs have no particles and others have some.

parent 95a2b3ef
Branches
Tags
No related merge requests found
......@@ -121,12 +121,16 @@ void Foam::Cloud<ParticleType>::initCloud(const bool checkClass)
}
else
{
WarningIn("Cloud<ParticleType>::initCloud(const bool checkClass)")
<< "Cannot read particle positions file " << nl
Pout<< "Cannot read particle positions file " << nl
<< " " << ioP.path() << nl
<< " assuming the initial cloud contains 0 particles." << endl;
}
// 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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment