Formatting

This commit is contained in:
Hrvoje Jasak 2018-08-10 13:26:47 +01:00
parent 77a51c3c9e
commit 45eb621334

View file

@ -248,7 +248,7 @@ bool Foam::primitiveMesh::checkClosedCells
{
scalar maxOpenness = 0;
for(direction cmpt=0; cmpt<vector::nComponents; cmpt++)
for(direction cmpt = 0; cmpt < vector::nComponents; cmpt++)
{
maxOpenness = max
(
@ -1165,7 +1165,7 @@ bool Foam::primitiveMesh::checkEdgeAlignment
}
label nDirs = 0;
for (direction cmpt=0; cmpt<vector::nComponents; cmpt++)
for (direction cmpt = 0; cmpt < vector::nComponents; cmpt++)
{
if (directions[cmpt] == 1)
{
@ -1187,8 +1187,6 @@ bool Foam::primitiveMesh::checkEdgeAlignment
return false;
}
const pointField& p = points();
const faceList& fcs = faces();
@ -1204,7 +1202,7 @@ bool Foam::primitiveMesh::checkEdgeAlignment
label p1 = f.nextLabel(fp);
if (p0 < p1)
{
vector d(p[p1]-p[p0]);
vector d(p[p1] - p[p0]);
scalar magD = mag(d);
if (magD > ROOTVSMALL)
@ -1214,7 +1212,7 @@ bool Foam::primitiveMesh::checkEdgeAlignment
// Check how many empty directions are used by the edge.
label nEmptyDirs = 0;
label nNonEmptyDirs = 0;
for (direction cmpt=0; cmpt<vector::nComponents; cmpt++)
for (direction cmpt = 0; cmpt < vector::nComponents; cmpt++)
{
if (mag(d[cmpt]) > 1e-6)
{