diff --git a/src/sampling/probes/patchProbes.C b/src/sampling/probes/patchProbes.C index 6fb89affa5f0f068c4875029813848076053bc77..f72647b34e6019f27135cd6ef3d8e678df37c3e6 100644 --- a/src/sampling/probes/patchProbes.C +++ b/src/sampling/probes/patchProbes.C @@ -129,11 +129,11 @@ void Foam::patchProbes::findElements(const fvMesh& mesh) if (isA<emptyPolyPatch>(bm[patchi])) { WarningInFunction - << " The sample point: " << sample - << " belongs to " << patchi - << " which is an empty patch. This is not permitted. " - << " This sample will not be included " - << endl; + << " The sample point: " << sample + << " belongs to " << patchi + << " which is an empty patch. This is not permitted. " + << " This sample will not be included " + << endl; } else if (info.hit()) { @@ -197,9 +197,12 @@ void Foam::patchProbes::findElements(const fvMesh& mesh) elementList_ = -1; faceList_.setSize(nearest.size()); faceList_ = -1; + processor_.setSize(nearest.size()); + processor_ = -1; forAll(nearest, sampleI) { + processor_[sampleI] = nearest[sampleI].second().second(); if (nearest[sampleI].second().second() == Pstream::myProcNo()) { // Store the face to sample