diff --git a/src/sampling/probes/patchProbes.C b/src/sampling/probes/patchProbes.C index b29174b368..7e7758cc0a 100644 --- a/src/sampling/probes/patchProbes.C +++ b/src/sampling/probes/patchProbes.C @@ -98,9 +98,9 @@ void Foam::patchProbes::findElements(const fvMesh& mesh) ); - forAll(probeLocations(), probeI) + forAll(probeLocations(), probei) { - const point sample = probeLocations()[probeI]; + const point sample = probeLocations()[probei]; scalar span = boundaryTree.bb().mag(); @@ -148,7 +148,7 @@ void Foam::patchProbes::findElements(const fvMesh& mesh) sampleInfo.second().first() = magSqr(fc-sample); sampleInfo.second().second() = Pstream::myProcNo(); - nearest[probeI]= sampleInfo; + nearest[probei]= sampleInfo; } } } diff --git a/src/sampling/probes/patchProbesTemplates.C b/src/sampling/probes/patchProbesTemplates.C index 935b1bd790..35d120491a 100644 --- a/src/sampling/probes/patchProbesTemplates.C +++ b/src/sampling/probes/patchProbesTemplates.C @@ -47,9 +47,9 @@ void Foam::patchProbes::sampleAndWrite << setw(w) << vField.time().timeToUserTime(vField.time().value()); - forAll(values, probeI) + forAll(values, probei) { - probeStream << ' ' << setw(w) << values[probeI]; + probeStream << ' ' << setw(w) << values[probei]; } probeStream << endl; } @@ -73,9 +73,9 @@ void Foam::patchProbes::sampleAndWrite << setw(w) << sField.time().timeToUserTime(sField.time().value()); - forAll(values, probeI) + forAll(values, probei) { - probeStream << ' ' << setw(w) << values[probeI]; + probeStream << ' ' << setw(w) << values[probei]; } probeStream << endl; } @@ -206,15 +206,15 @@ Foam::patchProbes::sample const polyBoundaryMesh& patches = mesh_.boundaryMesh(); - forAll(*this, probeI) + forAll(*this, probei) { - label facei = elementList_[probeI]; + label facei = elementList_[probei]; if (facei >= 0) { label patchi = patches.whichPatch(facei); label localFacei = patches[patchi].whichFace(facei); - values[probeI] = vField.boundaryField()[patchi][localFacei]; + values[probei] = vField.boundaryField()[patchi][localFacei]; } } @@ -257,15 +257,15 @@ Foam::patchProbes::sample const polyBoundaryMesh& patches = mesh_.boundaryMesh(); - forAll(*this, probeI) + forAll(*this, probei) { - label facei = elementList_[probeI]; + label facei = elementList_[probei]; if (facei >= 0) { label patchi = patches.whichPatch(facei); label localFacei = patches[patchi].whichFace(facei); - values[probeI] = sField.boundaryField()[patchi][localFacei]; + values[probei] = sField.boundaryField()[patchi][localFacei]; } } diff --git a/src/sampling/probes/probes.C b/src/sampling/probes/probes.C index 0b7ed5d8d2..e6e812196d 100644 --- a/src/sampling/probes/probes.C +++ b/src/sampling/probes/probes.C @@ -61,13 +61,13 @@ void Foam::probes::findElements(const fvMesh& mesh) faceList_.clear(); faceList_.setSize(size()); - forAll(*this, probeI) + forAll(*this, probei) { - const vector& location = operator[](probeI); + const vector& location = operator[](probei); const label celli = mesh.findCell(location); - elementList_[probeI] = celli; + elementList_[probei] = celli; if (celli != -1) { @@ -85,28 +85,28 @@ void Foam::probes::findElements(const fvMesh& mesh) minFaceID = facei; } } - faceList_[probeI] = minFaceID; + faceList_[probei] = minFaceID; } else { - faceList_[probeI] = -1; + faceList_[probei] = -1; } - if (debug && (elementList_[probeI] != -1 || faceList_[probeI] != -1)) + if (debug && (elementList_[probei] != -1 || faceList_[probei] != -1)) { Pout<< "probes : found point " << location - << " in cell " << elementList_[probeI] - << " and face " << faceList_[probeI] << endl; + << " in cell " << elementList_[probei] + << " and face " << faceList_[probei] << endl; } } // Check if all probes have been found. - forAll(elementList_, probeI) + forAll(elementList_, probei) { - const vector& location = operator[](probeI); - label celli = elementList_[probeI]; - label facei = faceList_[probeI]; + const vector& location = operator[](probei); + label celli = elementList_[probei]; + label facei = faceList_[probei]; // Check at least one processor with cell. reduce(celli, maxOp