STYLE: Correct formatting

This commit is contained in:
laurence
2012-03-19 11:29:03 +00:00
parent db8857a88b
commit c0524a8eeb
3 changed files with 23 additions and 20 deletions

View File

@ -82,9 +82,9 @@ Foam::nonUniformField::nonUniformField
Info<< decrIndent;
Info<< indent << "Cell size field statistics:" << nl
<< indent << " Minimum: " << min(surfaceCellSize_).value() << nl
<< indent << " Average: " << average(surfaceCellSize_).value() << nl
<< indent << " Maximum: " << max(surfaceCellSize_).value() << endl;
<< indent << " Minimum: " << min(surfaceCellSize_).value() << nl
<< indent << " Average: " << average(surfaceCellSize_).value() << nl
<< indent << " Maximum: " << max(surfaceCellSize_).value() << endl;
Info<< decrIndent;
}

View File

@ -719,12 +719,15 @@ bool Foam::conformalVoronoiMesh::dualCellSurfaceAllIntersections
const Foam::point& p = infoList[hitI].hitPoint();
const scalar separationDistance
= mag(p - info.hitPoint());
const scalar separationDistance =
mag(p - info.hitPoint());
const scalar minSepDist
= sqr(cvMeshControls().removalDistCoeff()
*targetCellSize(p));
const scalar minSepDist =
sqr
(
cvMeshControls().removalDistCoeff()
*targetCellSize(p)
);
// Reject the point if it is too close to another
// surface point.

View File

@ -157,12 +157,12 @@ scalarField calcCurvature(const triSurface& surf)
// << monge_fit.condition_number() << nl << std::endl;
// Use the maximum curvature to give smaller cell sizes later.
k[vertI++]
= max
(
mag(monge_form.principal_curvatures(0)),
mag(monge_form.principal_curvatures(1))
);
k[vertI++] =
max
(
mag(monge_form.principal_curvatures(0)),
mag(monge_form.principal_curvatures(1))
);
}
return k;
@ -174,8 +174,10 @@ bool edgesConnected(const edge& e1, const edge& e2)
{
if
(
e1.start() == e2.start() || e1.start() == e2.end()
|| e1.end() == e2.start() || e1.end() == e2.end()
e1.start() == e2.start()
|| e1.start() == e2.end()
|| e1.end() == e2.start()
|| e1.end() == e2.end()
)
{
return true;
@ -265,8 +267,8 @@ scalar calcProximityOfFeatureEdges
// Don't refine if the edges are connected to each other
if (!edgesConnected(e1, e2))
{
scalar curDist
= mag(pHit1.hitPoint() - pHit2.hitPoint());
scalar curDist =
mag(pHit1.hitPoint() - pHit2.hitPoint());
minDist = min(curDist, minDist);
}
@ -897,8 +899,6 @@ int main(int argc, char *argv[])
scalar span = searchSurf.bounds().mag();
//args.optionReadIfPresent("closeness", span);
scalar externalAngleTolerance = 10;
scalar externalToleranceCosAngle =
Foam::cos