mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Further standardization of loop index naming: pointI -> pointi, patchI -> patchi
This commit is contained in:
@ -74,12 +74,12 @@ bool Foam::meshStructure::isStructuredCell
|
||||
label nLayerPlus1 = 0;
|
||||
forAll(f, fp)
|
||||
{
|
||||
label pointI = f[fp];
|
||||
if (pointLayer_[pointI] == layerI)
|
||||
label pointi = f[fp];
|
||||
if (pointLayer_[pointi] == layerI)
|
||||
{
|
||||
nLayer++;
|
||||
}
|
||||
else if (pointLayer_[pointI] == layerI+1)
|
||||
else if (pointLayer_[pointi] == layerI+1)
|
||||
{
|
||||
nLayerPlus1++;
|
||||
}
|
||||
@ -227,10 +227,10 @@ void Foam::meshStructure::correct
|
||||
// Start of changes
|
||||
labelList patchPoints(pp.nPoints());
|
||||
List<pointTopoDistanceData> patchData(pp.nPoints());
|
||||
forAll(pp.meshPoints(), patchPointI)
|
||||
forAll(pp.meshPoints(), patchPointi)
|
||||
{
|
||||
patchPoints[patchPointI] = pp.meshPoints()[patchPointI];
|
||||
patchData[patchPointI] = pointTopoDistanceData(patchPointI, 0);
|
||||
patchPoints[patchPointi] = pp.meshPoints()[patchPointi];
|
||||
patchData[patchPointi] = pointTopoDistanceData(patchPointi, 0);
|
||||
}
|
||||
|
||||
|
||||
@ -246,10 +246,10 @@ void Foam::meshStructure::correct
|
||||
mesh.globalData().nTotalPoints() // max iterations
|
||||
);
|
||||
|
||||
forAll(pointData, pointI)
|
||||
forAll(pointData, pointi)
|
||||
{
|
||||
pointToPatchPointAddressing_[pointI] = pointData[pointI].data();
|
||||
pointLayer_[pointI] = pointData[pointI].distance();
|
||||
pointToPatchPointAddressing_[pointi] = pointData[pointi].data();
|
||||
pointLayer_[pointi] = pointData[pointi].distance();
|
||||
}
|
||||
|
||||
|
||||
@ -304,15 +304,15 @@ void Foam::meshStructure::correct
|
||||
// See if there is any edge
|
||||
forAll(f, fp)
|
||||
{
|
||||
label pointI = f[fp];
|
||||
label nextPointI = f.nextLabel(fp);
|
||||
label pointi = f[fp];
|
||||
label nextPointi = f.nextLabel(fp);
|
||||
|
||||
EdgeMap<label>::const_iterator fnd = pointsToEdge.find
|
||||
(
|
||||
edge
|
||||
(
|
||||
pointData[pointI].data(),
|
||||
pointData[nextPointI].data()
|
||||
pointData[pointi].data(),
|
||||
pointData[nextPointi].data()
|
||||
)
|
||||
);
|
||||
if (fnd != pointsToEdge.end())
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -116,7 +116,7 @@ public:
|
||||
inline void leaveDomain
|
||||
(
|
||||
const polyPatch& patch,
|
||||
const label patchPointI,
|
||||
const label patchPointi,
|
||||
const point& pos,
|
||||
TrackingData& td
|
||||
);
|
||||
@ -126,7 +126,7 @@ public:
|
||||
inline void enterDomain
|
||||
(
|
||||
const polyPatch& patch,
|
||||
const label patchPointI,
|
||||
const label patchPointi,
|
||||
const point& pos,
|
||||
TrackingData& td
|
||||
);
|
||||
@ -144,7 +144,7 @@ public:
|
||||
inline bool updatePoint
|
||||
(
|
||||
const polyMesh& mesh,
|
||||
const label pointI,
|
||||
const label pointi,
|
||||
const label edgeI,
|
||||
const pointTopoDistanceData& edgeInfo,
|
||||
const scalar tol,
|
||||
@ -157,7 +157,7 @@ public:
|
||||
inline bool updatePoint
|
||||
(
|
||||
const polyMesh& mesh,
|
||||
const label pointI,
|
||||
const label pointi,
|
||||
const pointTopoDistanceData& newPointInfo,
|
||||
const scalar tol,
|
||||
TrackingData& td
|
||||
@ -179,7 +179,7 @@ public:
|
||||
(
|
||||
const polyMesh& mesh,
|
||||
const label edgeI,
|
||||
const label pointI,
|
||||
const label pointi,
|
||||
const pointTopoDistanceData& pointInfo,
|
||||
const scalar tol,
|
||||
TrackingData& td
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -77,7 +77,7 @@ template<class TrackingData>
|
||||
inline void Foam::pointTopoDistanceData::leaveDomain
|
||||
(
|
||||
const polyPatch& patch,
|
||||
const label patchPointI,
|
||||
const label patchPointi,
|
||||
const point& coord,
|
||||
TrackingData& td
|
||||
)
|
||||
@ -99,7 +99,7 @@ template<class TrackingData>
|
||||
inline void Foam::pointTopoDistanceData::enterDomain
|
||||
(
|
||||
const polyPatch& patch,
|
||||
const label patchPointI,
|
||||
const label patchPointi,
|
||||
const point& coord,
|
||||
TrackingData& td
|
||||
)
|
||||
@ -111,7 +111,7 @@ template<class TrackingData>
|
||||
inline bool Foam::pointTopoDistanceData::updatePoint
|
||||
(
|
||||
const polyMesh& mesh,
|
||||
const label pointI,
|
||||
const label pointi,
|
||||
const label edgeI,
|
||||
const pointTopoDistanceData& edgeInfo,
|
||||
const scalar tol,
|
||||
@ -136,7 +136,7 @@ template<class TrackingData>
|
||||
inline bool Foam::pointTopoDistanceData::updatePoint
|
||||
(
|
||||
const polyMesh& mesh,
|
||||
const label pointI,
|
||||
const label pointi,
|
||||
const pointTopoDistanceData& newPointInfo,
|
||||
const scalar tol,
|
||||
TrackingData& td
|
||||
@ -181,7 +181,7 @@ inline bool Foam::pointTopoDistanceData::updateEdge
|
||||
(
|
||||
const polyMesh& mesh,
|
||||
const label edgeI,
|
||||
const label pointI,
|
||||
const label pointi,
|
||||
const pointTopoDistanceData& pointInfo,
|
||||
const scalar tol,
|
||||
TrackingData& td
|
||||
|
||||
Reference in New Issue
Block a user