ENH: probes: filter out points that cannot be found. Fixes #492.

This commit is contained in:
mattijs
2017-06-08 16:55:52 +01:00
parent 6186f91fea
commit ca7dbabdcf

View File

@ -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