optional reading of writeGraph

This commit is contained in:
mattijs
2009-05-28 18:15:16 +01:00
parent 6c2996cac4
commit d4d4f72827

View File

@ -153,6 +153,8 @@ Foam::label Foam::scotchDecomp::decompose
const dictionary& scotchCoeffs =
decompositionDict_.subDict("scotchCoeffs");
if (scotchCoeffs.found("writeGraph"))
{
Switch writeGraph(scotchCoeffs.lookup("writeGraph"));
if (writeGraph)
@ -187,6 +189,7 @@ Foam::label Foam::scotchDecomp::decompose
}
}
}
}
// Architecture