Commit 250fe370 authored by Franjo's avatar Franjo
Browse files

Formatting and tabs

parent 8338fbe4
......@@ -44,15 +44,14 @@ checkIrregularSurfaceConnections::checkIrregularSurfaceConnections
:
mesh_(mesh),
meshSurfacePtr_(NULL)
{
}
{}
// * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * * * * * //
checkIrregularSurfaceConnections::~checkIrregularSurfaceConnections()
{
clearMeshEngine();
mesh_.clearAddressingData();
}
......@@ -64,41 +63,41 @@ void checkIrregularSurfaceConnections::checkIrregularVertices
)
{
checkAndFixCellGroupsAtBndVertices(badVertices, false);
checkEdgeFaceConnections(badVertices, false);
checkFaceGroupsAtBndVertices(badVertices, false);
}
bool checkIrregularSurfaceConnections::checkAndFixIrregularConnections()
{
Info << "Checking for irregular surface connections" << endl;
bool finished;
labelHashSet badVertices;
do
{
finished = true;
while( checkAndFixCellGroupsAtBndVertices(badVertices, true) )
finished = false;
while( checkEdgeFaceConnections(badVertices, true) )
finished = false;
if( checkFaceGroupsAtBndVertices(badVertices, true) )
finished = false;
} while( !finished );
polyMeshGenModifier(mesh_).removeUnusedVertices();
Info << "Finished checking for irregular surface connections" << endl;
if( returnReduce(badVertices.size(), sumOp<label>()) != 0 )
return true;
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment