Skip to content
Snippets Groups Projects
Commit 2d1efdaa authored by mattijs's avatar mattijs
Browse files

ENH: snappyHexMesh: run without decomposeParDict

parent 1f7d24e6
Branches
Tags
No related merge requests found
......@@ -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
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment