mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: snappyHexMesh: run without decomposeParDict
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user