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 // Read decomposePar dictionary
dictionary decomposeDict; dictionary decomposeDict;
{ {
IOobject io if (Pstream::parRun())
(
"decomposeParDict",
runTime.system(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
);
if (io.headerOk())
{ {
decomposeDict = IOdictionary(io); decomposeDict = IOdictionary
(
IOobject
(
"decomposeParDict",
runTime.system(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
);
} }
else else
{ {