ENH: snappyHexMesh: run without decomposeParDict

This commit is contained in:
mattijs
2012-07-10 10:03:32 +01:00
parent 1f7d24e617
commit 2d1efdaa6c

View File

@ -179,18 +179,19 @@ int main(int argc, char *argv[])
// Read decomposePar dictionary
dictionary decomposeDict;
{
IOobject io
(
"decomposeParDict",
runTime.system(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
);
if (io.headerOk())
if (Pstream::parRun())
{
decomposeDict = IOdictionary(io);
decomposeDict = IOdictionary
(
IOobject
(
"decomposeParDict",
runTime.system(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
);
}
else
{