mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: scotchDecomp: check validity of processorWeights. Fixes #1207.
This commit is contained in:
@ -718,6 +718,15 @@ Foam::label Foam::ptscotchDecomp::decompose
|
||||
<< processorWeights
|
||||
<< endl;
|
||||
}
|
||||
|
||||
if (processorWeights.size() != nDomains_)
|
||||
{
|
||||
FatalIOErrorInFunction(coeffsDict_)
|
||||
<< "processorWeights not the same size"
|
||||
<< " as the wanted number of domains " << nDomains_
|
||||
<< exit(FatalIOError);
|
||||
}
|
||||
|
||||
check
|
||||
(
|
||||
SCOTCH_archCmpltw
|
||||
|
||||
@ -349,6 +349,14 @@ Foam::label Foam::scotchDecomp::decomposeSerial
|
||||
Info<< "scotchDecomp : Using procesor weights " << processorWeights
|
||||
<< endl;
|
||||
}
|
||||
if (processorWeights.size() != nDomains_)
|
||||
{
|
||||
FatalIOErrorInFunction(coeffsDict_)
|
||||
<< "processorWeights not the same size"
|
||||
<< " as the wanted number of domains " << nDomains_
|
||||
<< exit(FatalIOError);
|
||||
}
|
||||
|
||||
check
|
||||
(
|
||||
SCOTCH_archCmpltw
|
||||
|
||||
Reference in New Issue
Block a user