ENH: cvMesh: Construct cvMesh object after checkGeometry

This commit is contained in:
laurence
2012-12-20 12:38:04 +00:00
parent 622f06c630
commit 180cb0bbc1

View File

@ -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;