mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
Further standardization of loop index naming: pointI -> pointi, patchI -> patchi
This commit is contained in:
@ -69,9 +69,9 @@ void writePoints(const polyMesh& mesh, const fileName& timeName)
|
||||
|
||||
OFstream pointStream(pointFile);
|
||||
|
||||
forAll(mesh.points(), pointI)
|
||||
forAll(mesh.points(), pointi)
|
||||
{
|
||||
writeOBJ(mesh.points()[pointI], pointStream);
|
||||
writeOBJ(mesh.points()[pointi], pointStream);
|
||||
vertI++;
|
||||
}
|
||||
|
||||
@ -265,9 +265,9 @@ void writePatchFaces
|
||||
|
||||
OFstream patchFaceStream(faceFile);
|
||||
|
||||
forAll(pp.localPoints(), pointI)
|
||||
forAll(pp.localPoints(), pointi)
|
||||
{
|
||||
writeOBJ(pp.localPoints()[pointI], patchFaceStream);
|
||||
writeOBJ(pp.localPoints()[pointi], patchFaceStream);
|
||||
}
|
||||
|
||||
forAll(pp.localFaces(), facei)
|
||||
@ -308,9 +308,9 @@ void writePatchBoundaryEdges
|
||||
|
||||
OFstream patchEdgeStream(edgeFile);
|
||||
|
||||
forAll(pp.localPoints(), pointI)
|
||||
forAll(pp.localPoints(), pointi)
|
||||
{
|
||||
writeOBJ(pp.localPoints()[pointI], patchEdgeStream);
|
||||
writeOBJ(pp.localPoints()[pointi], patchEdgeStream);
|
||||
}
|
||||
|
||||
for (label edgeI = pp.nInternalEdges(); edgeI < pp.nEdges(); edgeI++)
|
||||
@ -329,11 +329,11 @@ void writePatchBoundaryEdges
|
||||
void writePointCells
|
||||
(
|
||||
const polyMesh& mesh,
|
||||
const label pointI,
|
||||
const label pointi,
|
||||
const fileName& timeName
|
||||
)
|
||||
{
|
||||
const labelList& pCells = mesh.pointCells()[pointI];
|
||||
const labelList& pCells = mesh.pointCells()[pointi];
|
||||
|
||||
labelHashSet allEdges(6*pCells.size());
|
||||
|
||||
@ -351,7 +351,7 @@ void writePointCells
|
||||
fileName pFile
|
||||
(
|
||||
mesh.time().path()
|
||||
/ "pointEdges_" + timeName + '_' + name(pointI) + ".obj"
|
||||
/ "pointEdges_" + timeName + '_' + name(pointi) + ".obj"
|
||||
);
|
||||
|
||||
Info<< "Writing pointEdges to " << pFile << endl;
|
||||
@ -470,9 +470,9 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
if (doPoint)
|
||||
{
|
||||
label pointI = args.optionRead<label>("point");
|
||||
label pointi = args.optionRead<label>("point");
|
||||
|
||||
writePointCells(mesh, pointI, runTime.timeName());
|
||||
writePointCells(mesh, pointi, runTime.timeName());
|
||||
}
|
||||
if (doFace)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user