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:
@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user