diff --git a/src/sampling/probes/patchProbes.C b/src/sampling/probes/patchProbes.C index 6fd5f9cf9221e2e3bbfa8d0cfaa2cdbaa0a3f360..f9c62f7f64a23f912a413768c12416022ba21729 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,12 +197,15 @@ void Foam::patchProbes::findElements(const fvMesh& mesh) elementList_ = -1; faceList_.setSize(nearest.size()); faceList_ = -1; + processor_.setSize(nearest.size()); + processor_ = -1; processor_.setSize(size()); processor_ = -1; forAll(nearest, sampleI) { + processor_[sampleI] = nearest[sampleI].second().second(); if (nearest[sampleI].second().second() == Pstream::myProcNo()) { // Store the face to sample diff --git a/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-pre b/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-pre index e2508db192560393817c69c7152b8cc54c6cacea..21c5d3f1998cc8a0369d9a0c33d806327c44e87b 100755 --- a/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-pre +++ b/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-pre @@ -71,7 +71,7 @@ runParallel checkMesh -allTopology -allGeometry -latestTime # Copy the mesh from the latest time folder into polyMesh and delete that # latest time folder -latestTime=$(foamInfoExec -case processor0 -latestTime) +latestTime=$(foamListTimes -latestTime -processor) if [ "$latestTime" != "constant" ] && [ -d processor0/$latestTime/polyMesh ] then runApplication reconstructParMesh -latestTime