STYLE: for "if(" and "for(" add space before "(".

This commit is contained in:
graham
2011-06-21 16:59:18 +01:00
parent 3c59b696ee
commit 1c44de9061
4 changed files with 11 additions and 11 deletions

View File

@ -88,7 +88,7 @@ Foam::tensor Foam::conformalVoronoiMesh::requiredAlignment
scalar spanMag = geometryToConformTo_.globalBounds().mag(); scalar spanMag = geometryToConformTo_.globalBounds().mag();
for(label i = 0; i < s; i++) for (label i = 0; i < s; i++)
{ {
vector spoke vector spoke
( (
@ -439,7 +439,7 @@ void Foam::conformalVoronoiMesh::insertSurfacePointPairs
insertPoints(pts, indices, types, true); insertPoints(pts, indices, types, true);
if(cvMeshControls().objOutput() && fName != fileName::null) if (cvMeshControls().objOutput() && fName != fileName::null)
{ {
writePoints(fName, pts); writePoints(fName, pts);
} }
@ -478,7 +478,7 @@ void Foam::conformalVoronoiMesh::insertEdgePointGroups
insertPoints(pts, indices, types, true); insertPoints(pts, indices, types, true);
if(cvMeshControls().objOutput() && fName != fileName::null) if (cvMeshControls().objOutput() && fName != fileName::null)
{ {
writePoints(fName, pts); writePoints(fName, pts);
} }
@ -768,7 +768,7 @@ void Foam::conformalVoronoiMesh::insertFeaturePoints()
// Insert the created points, distributing to the appropriate processor // Insert the created points, distributing to the appropriate processor
insertPoints(pts, indices, types, true); insertPoints(pts, indices, types, true);
if(cvMeshControls().objOutput()) if (cvMeshControls().objOutput())
{ {
writePoints("featureVertices.obj", pts); writePoints("featureVertices.obj", pts);
} }
@ -1009,7 +1009,7 @@ void Foam::conformalVoronoiMesh::createMixedFeaturePoints
} }
} }
if(skipEdge) if (skipEdge)
{ {
Info<< "Skipping point " << ptI << nl << endl; Info<< "Skipping point " << ptI << nl << endl;
@ -1225,7 +1225,7 @@ void Foam::conformalVoronoiMesh::insertInitialPoints()
// which processor each point should be on, so give distribute = false // which processor each point should be on, so give distribute = false
insertPoints(initPts, false); insertPoints(initPts, false);
if(cvMeshControls().objOutput()) if (cvMeshControls().objOutput())
{ {
writePoints("initialPoints.obj", true); writePoints("initialPoints.obj", true);
} }
@ -1422,7 +1422,7 @@ bool Foam::conformalVoronoiMesh::distributeBackground()
// Pout<< " Real vertices after distribution " // Pout<< " Real vertices after distribution "
// << label(number_of_vertices() - 8) << endl; // << label(number_of_vertices() - 8) << endl;
if(cvMeshControls().objOutput()) if (cvMeshControls().objOutput())
{ {
writePoints("distributedPoints.obj", true); writePoints("distributedPoints.obj", true);
} }
@ -1927,7 +1927,7 @@ Foam::conformalVoronoiMesh::conformalVoronoiMesh
// domain the processor they are on. // domain the processor they are on.
// reportProcessorOccupancy(); // reportProcessorOccupancy();
if(cvMeshControls().objOutput()) if (cvMeshControls().objOutput())
{ {
writePoints("allInitialPoints.obj", false); writePoints("allInitialPoints.obj", false);
} }

View File

@ -472,7 +472,7 @@ Foam::label Foam::conformalVoronoiMesh::mergeCloseDualVertices
continue; continue;
} }
if(c1I != -1 && c2I != -1 && (c1I != c2I)) if (c1I != -1 && c2I != -1 && (c1I != c2I))
{ {
if if
( (

View File

@ -1724,7 +1724,7 @@ void Foam::conformalVoronoiMesh::addSurfaceAndEdgeHits
if (edHit.hit()) if (edHit.hit())
{ {
if(!positionOnThisProc(edHit.hitPoint())) if (!positionOnThisProc(edHit.hitPoint()))
{ {
continue; continue;
} }

View File

@ -340,7 +340,7 @@ void Foam::conformalVoronoiMesh::writeMesh
const pointField& cellCentres const pointField& cellCentres
) const ) const
{ {
if(cvMeshControls().objOutput()) if (cvMeshControls().objOutput())
{ {
writeObjMesh(points, faces, word(meshName + ".obj")); writeObjMesh(points, faces, word(meshName + ".obj"));
} }