Standardized cell, patch and face loop index names

This commit is contained in:
Henry Weller
2016-04-25 10:28:32 +01:00
parent 6a27f7af46
commit 8c4f6b8fcb
849 changed files with 13266 additions and 13266 deletions

View File

@ -156,9 +156,9 @@ bool Foam::checkWedges
// Check all non-wedge faces
label nEdgesInError = 0;
forAll(fcs, faceI)
forAll(fcs, facei)
{
const face& f = fcs[faceI];
const face& f = fcs[facei];
forAll(f, fp)
{
@ -200,7 +200,7 @@ bool Foam::checkWedges
// Ok if purely in empty directions.
if (nNonEmptyDirs > 0)
{
if (edgesInError.insert(edge(p0, p1), faceI))
if (edgesInError.insert(edge(p0, p1), facei))
{
nEdgesInError++;
}
@ -209,7 +209,7 @@ bool Foam::checkWedges
else if (nEmptyDirs > 1)
{
// Always an error
if (edgesInError.insert(edge(p0, p1), faceI))
if (edgesInError.insert(edge(p0, p1), facei))
{
nEdgesInError++;
}
@ -274,9 +274,9 @@ namespace Foam
// lists of size cpp to transform.
List<pointField> newPts(pts.size());
forAll(pts, faceI)
forAll(pts, facei)
{
newPts[faceI].setSize(pts[faceI].size());
newPts[facei].setSize(pts[facei].size());
}
label index = 0;
@ -286,12 +286,12 @@ namespace Foam
// Extract for every face the i'th position
pointField ptsAtIndex(pts.size(), Zero);
forAll(cpp, faceI)
forAll(cpp, facei)
{
const pointField& facePts = pts[faceI];
const pointField& facePts = pts[facei];
if (facePts.size() > index)
{
ptsAtIndex[faceI] = facePts[index];
ptsAtIndex[facei] = facePts[index];
n++;
}
}
@ -306,12 +306,12 @@ namespace Foam
cpp.transformPosition(ptsAtIndex);
// Extract back from ptsAtIndex into newPts
forAll(cpp, faceI)
forAll(cpp, facei)
{
pointField& facePts = newPts[faceI];
pointField& facePts = newPts[facei];
if (facePts.size() > index)
{
facePts[index] = ptsAtIndex[faceI];
facePts[index] = ptsAtIndex[facei];
}
}