mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: switch to ptscotch instead of scotch automatically for parallel runs
This commit is contained in:
@ -46,7 +46,13 @@ Foam::autoPtr<Foam::decompositionMethod> Foam::decompositionMethod::New
|
|||||||
const dictionary& decompositionDict
|
const dictionary& decompositionDict
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const word methodType(decompositionDict.lookup("method"));
|
word methodType(decompositionDict.lookup("method"));
|
||||||
|
|
||||||
|
if (methodType == "scotch" && Pstream::parRun())
|
||||||
|
{
|
||||||
|
methodType = "ptscotch";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Info<< "Selecting decompositionMethod " << methodType << endl;
|
Info<< "Selecting decompositionMethod " << methodType << endl;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user