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
|
<< processorWeights
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (processorWeights.size() != nDomains_)
|
||||||
|
{
|
||||||
|
FatalIOErrorInFunction(coeffsDict_)
|
||||||
|
<< "processorWeights not the same size"
|
||||||
|
<< " as the wanted number of domains " << nDomains_
|
||||||
|
<< exit(FatalIOError);
|
||||||
|
}
|
||||||
|
|
||||||
check
|
check
|
||||||
(
|
(
|
||||||
SCOTCH_archCmpltw
|
SCOTCH_archCmpltw
|
||||||
|
|||||||
@ -349,6 +349,14 @@ Foam::label Foam::scotchDecomp::decomposeSerial
|
|||||||
Info<< "scotchDecomp : Using procesor weights " << processorWeights
|
Info<< "scotchDecomp : Using procesor weights " << processorWeights
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
|
if (processorWeights.size() != nDomains_)
|
||||||
|
{
|
||||||
|
FatalIOErrorInFunction(coeffsDict_)
|
||||||
|
<< "processorWeights not the same size"
|
||||||
|
<< " as the wanted number of domains " << nDomains_
|
||||||
|
<< exit(FatalIOError);
|
||||||
|
}
|
||||||
|
|
||||||
check
|
check
|
||||||
(
|
(
|
||||||
SCOTCH_archCmpltw
|
SCOTCH_archCmpltw
|
||||||
|
|||||||
Reference in New Issue
Block a user