Further standardization of loop index naming: pointI -> pointi, patchI -> patchi

This commit is contained in:
Henry Weller
2016-05-18 21:20:42 +01:00
parent ac632e7984
commit 67de20df25
365 changed files with 4877 additions and 4877 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -55,27 +55,27 @@ void Foam::nearestToPoint::combine(topoSet& set, const bool add) const
{
// Do linear search since usually just a few points.
forAll(points_, pointI)
forAll(points_, pointi)
{
const pointField& pts = mesh_.points();
if (pts.size())
{
label minPointI = 0;
scalar minDistSqr = magSqr(pts[minPointI] - points_[pointI]);
label minPointi = 0;
scalar minDistSqr = magSqr(pts[minPointi] - points_[pointi]);
for (label i = 1; i < pts.size(); i++)
{
scalar distSqr = magSqr(pts[i] - points_[pointI]);
scalar distSqr = magSqr(pts[i] - points_[pointi]);
if (distSqr < minDistSqr)
{
minDistSqr = distSqr;
minPointI = i;
minPointi = i;
}
}
addOrDelete(set, minPointI, add);
addOrDelete(set, minPointi, add);
}
}
}