ENH: snappyHexMesh: run without decomposeParDict

This commit is contained in:
mattijs
2012-07-04 10:01:25 +01:00
parent 82ec0dbe6b
commit 33656b3969

View File

@ -40,6 +40,7 @@ Description
#include "refinementFeatures.H" #include "refinementFeatures.H"
#include "shellSurfaces.H" #include "shellSurfaces.H"
#include "decompositionMethod.H" #include "decompositionMethod.H"
#include "noDecomp.H"
#include "fvMeshDistribute.H" #include "fvMeshDistribute.H"
#include "wallPolyPatch.H" #include "wallPolyPatch.H"
#include "refinementParameters.H" #include "refinementParameters.H"
@ -176,17 +177,27 @@ int main(int argc, char *argv[])
// Read decomposePar dictionary // Read decomposePar dictionary
IOdictionary decomposeDict dictionary decomposeDict;
( {
IOobject IOobject io
( (
"decomposeParDict", "decomposeParDict",
runTime.system(), runTime.system(),
mesh, mesh,
IOobject::MUST_READ_IF_MODIFIED, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) );
);
if (io.headerOk())
{
decomposeDict = IOdictionary(io);
}
else
{
decomposeDict.add("method", "none");
decomposeDict.add("numberOfSubdomains", 1);
}
}
// Debug // Debug