decomposePar: corrected decomposeParDict read using -region option

Patch contributed by Mattijs Janssens
Resolves bug-report http://bugs.openfoam.org/view.php?id=2227
This commit is contained in:
Henry Weller
2016-09-03 20:54:16 +01:00
parent c193493822
commit 15fda67bbc

View File

@ -57,7 +57,7 @@ Foam::decompositionModel::decompositionModel
"decomposeParDict",
mesh.time().system(),
mesh.local(),
mesh.db(),
mesh,
IOobject::MUST_READ,
IOobject::NO_WRITE,
false //io.registerObject()
@ -90,7 +90,7 @@ Foam::decompositionModel::decompositionModel
"decomposeParDict",
mesh.time().system(),
mesh.local(),
mesh.db(),
mesh,
(dict.size() ? IOobject::NO_READ : IOobject::MUST_READ),
IOobject::NO_WRITE,
false //io.registerObject()