ZoltanDecomp: Check for no points on any processor during redistribution and throw a fatal error

Zoltan hangs if a processor has no points/cells during redistribution and
unfortunatel Zoltan can generate distributions in which one or processors has no
cells.
This commit is contained in:
Henry Weller
2022-12-05 19:54:39 +00:00
parent a140f7d653
commit 02c7257eb0

View File

@ -248,6 +248,14 @@ Foam::label Foam::zoltanDecomp::decompose
List<label>& finalDecomp
) const
{
if (Pstream::parRun() && !points.size())
{
Pout<< "No points on processor " << Pstream::myProcNo() << nl
<< " Zoltan cannot redistribute without points"
"on all processors." << endl;
FatalErrorInFunction << exit(FatalError);
}
stringList args(1);
args[0] = "zoltanDecomp";