From ca7dbabdcfd7a0ef099c1b3d0521d7dcca14aaa0 Mon Sep 17 00:00:00 2001 From: mattijs Date: Thu, 8 Jun 2017 16:55:52 +0100 Subject: [PATCH 1/2] ENH: probes: filter out points that cannot be found. Fixes #492. --- src/sampling/probes/patchProbes.C | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/sampling/probes/patchProbes.C b/src/sampling/probes/patchProbes.C index 6fb89affa5..f72647b34e 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(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 From e14ad6f1fc0381b905daec28b60c8cf029f35d44 Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 14 Jun 2017 12:28:33 +0100 Subject: [PATCH 2/2] BUG: mixerVessel: replace foamInfoExec with foamListTimes --- tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-pre | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-pre b/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-pre index e2508db192..21c5d3f199 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