ENH: switch to ptscotch instead of scotch automatically for parallel runs

This commit is contained in:
andy
2012-03-15 18:05:40 +00:00
parent 0a21d02530
commit eff835ffee

View File

@ -46,7 +46,13 @@ Foam::autoPtr<Foam::decompositionMethod> Foam::decompositionMethod::New
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;