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

Formatting and tabs

parent 8338fbe4
...@@ -44,15 +44,14 @@ checkIrregularSurfaceConnections::checkIrregularSurfaceConnections ...@@ -44,15 +44,14 @@ checkIrregularSurfaceConnections::checkIrregularSurfaceConnections
: :
mesh_(mesh), mesh_(mesh),
meshSurfacePtr_(NULL) meshSurfacePtr_(NULL)
{ {}
}
// * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * * * * * //
checkIrregularSurfaceConnections::~checkIrregularSurfaceConnections() checkIrregularSurfaceConnections::~checkIrregularSurfaceConnections()
{ {
clearMeshEngine(); clearMeshEngine();
mesh_.clearAddressingData(); mesh_.clearAddressingData();
} }
...@@ -64,41 +63,41 @@ void checkIrregularSurfaceConnections::checkIrregularVertices ...@@ -64,41 +63,41 @@ void checkIrregularSurfaceConnections::checkIrregularVertices
) )
{ {
checkAndFixCellGroupsAtBndVertices(badVertices, false); checkAndFixCellGroupsAtBndVertices(badVertices, false);
checkEdgeFaceConnections(badVertices, false); checkEdgeFaceConnections(badVertices, false);
checkFaceGroupsAtBndVertices(badVertices, false); checkFaceGroupsAtBndVertices(badVertices, false);
} }
bool checkIrregularSurfaceConnections::checkAndFixIrregularConnections() bool checkIrregularSurfaceConnections::checkAndFixIrregularConnections()
{ {
Info << "Checking for irregular surface connections" << endl; Info << "Checking for irregular surface connections" << endl;
bool finished; bool finished;
labelHashSet badVertices; labelHashSet badVertices;
do do
{ {
finished = true; finished = true;
while( checkAndFixCellGroupsAtBndVertices(badVertices, true) ) while( checkAndFixCellGroupsAtBndVertices(badVertices, true) )
finished = false; finished = false;
while( checkEdgeFaceConnections(badVertices, true) ) while( checkEdgeFaceConnections(badVertices, true) )
finished = false; finished = false;
if( checkFaceGroupsAtBndVertices(badVertices, true) ) if( checkFaceGroupsAtBndVertices(badVertices, true) )
finished = false; finished = false;
} while( !finished ); } while( !finished );
polyMeshGenModifier(mesh_).removeUnusedVertices(); polyMeshGenModifier(mesh_).removeUnusedVertices();
Info << "Finished checking for irregular surface connections" << endl; Info << "Finished checking for irregular surface connections" << endl;
if( returnReduce(badVertices.size(), sumOp<label>()) != 0 ) if( returnReduce(badVertices.size(), sumOp<label>()) != 0 )
return true; return true;
return false; 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