mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: checkMesh : move parallel checking into Zones.
This commit is contained in:
@ -51,35 +51,22 @@ Foam::label Foam::checkTopology
|
|||||||
mesh.boundaryMesh().checkParallelSync(true);
|
mesh.boundaryMesh().checkParallelSync(true);
|
||||||
|
|
||||||
// Check names of zones are equal
|
// Check names of zones are equal
|
||||||
if (checkSync(mesh.cellZones().names()))
|
mesh.cellZones().checkDefinition(true);
|
||||||
|
if (mesh.cellZones().checkParallelSync(true))
|
||||||
{
|
{
|
||||||
noFailedChecks++;
|
noFailedChecks++;
|
||||||
}
|
}
|
||||||
if (checkSync(mesh.faceZones().names()))
|
mesh.faceZones().checkDefinition(true);
|
||||||
|
if (mesh.faceZones().checkParallelSync(true))
|
||||||
{
|
{
|
||||||
noFailedChecks++;
|
noFailedChecks++;
|
||||||
}
|
}
|
||||||
if (checkSync(mesh.pointZones().names()))
|
mesh.pointZones().checkDefinition(true);
|
||||||
|
if (mesh.pointZones().checkParallelSync(true))
|
||||||
{
|
{
|
||||||
noFailedChecks++;
|
noFailedChecks++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check contents of faceZones consistent
|
|
||||||
{
|
|
||||||
forAll(mesh.faceZones(), zoneI)
|
|
||||||
{
|
|
||||||
if (mesh.faceZones()[zoneI].checkParallelSync(false))
|
|
||||||
{
|
|
||||||
Info<< " ***FaceZone " << mesh.faceZones()[zoneI].name()
|
|
||||||
<< " is not correctly synchronised"
|
|
||||||
<< " across coupled boundaries."
|
|
||||||
<< " (coupled faces are either not both "
|
|
||||||
<< " present in set or have same flipmap)" << endl;
|
|
||||||
noFailedChecks++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
{
|
||||||
pointSet points(mesh, "unusedPoints", mesh.nPoints()/100);
|
pointSet points(mesh, "unusedPoints", mesh.nPoints()/100);
|
||||||
if (mesh.checkPoints(true, &points))
|
if (mesh.checkPoints(true, &points))
|
||||||
|
|||||||
Reference in New Issue
Block a user