mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: cvMesh: Construct cvMesh object after checkGeometry
This commit is contained in:
@ -64,14 +64,22 @@ int main(int argc, char *argv[])
|
||||
)
|
||||
);
|
||||
|
||||
conformalVoronoiMesh::debug = true;
|
||||
|
||||
conformalVoronoiMesh mesh(runTime, cvMeshDict);
|
||||
|
||||
|
||||
if (checkGeometry)
|
||||
{
|
||||
const searchableSurfaces& allGeometry = mesh.allGeometry();
|
||||
const searchableSurfaces allGeometry
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"cvSearchableSurfaces",
|
||||
runTime.constant(),
|
||||
"triSurface",
|
||||
runTime,
|
||||
IOobject::MUST_READ,
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
cvMeshDict.subDict("geometry")
|
||||
);
|
||||
|
||||
// Write some stats
|
||||
allGeometry.writeStats(List<wordList>(0), Info);
|
||||
@ -91,6 +99,11 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
|
||||
conformalVoronoiMesh::debug = true;
|
||||
|
||||
conformalVoronoiMesh mesh(runTime, cvMeshDict);
|
||||
|
||||
|
||||
while (runTime.loop())
|
||||
{
|
||||
Info<< nl << "Time = " << runTime.timeName() << endl;
|
||||
|
||||
Reference in New Issue
Block a user