From 0026347c0e861eef5c72547a413eb01367e385d1 Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 9 Nov 2016 14:42:12 +0000 Subject: [PATCH] ENH: cloudSet: report the number of missing points --- src/sampling/sampledSet/cloud/cloudSet.C | 72 +++++++++++++++++++++--- 1 file changed, 65 insertions(+), 7 deletions(-) diff --git a/src/sampling/sampledSet/cloud/cloudSet.C b/src/sampling/sampledSet/cloud/cloudSet.C index 8ce6fb6bec..79b7f8f4a9 100644 --- a/src/sampling/sampledSet/cloud/cloudSet.C +++ b/src/sampling/sampledSet/cloud/cloudSet.C @@ -30,6 +30,7 @@ License #include "polyMesh.H" #include "addToRunTimeSelectionTable.H" #include "word.H" +#include "DynamicField.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // @@ -53,6 +54,7 @@ void Foam::cloudSet::calcSamples { const meshSearch& queryMesh = searchEngine(); + labelList foundProc(sampleCoords_.size(), -1); forAll(sampleCoords_, sampleI) { label celli = queryMesh.findCell(sampleCoords_[sampleI]); @@ -64,17 +66,73 @@ void Foam::cloudSet::calcSamples samplingFaces.append(-1); samplingSegments.append(0); samplingCurveDist.append(1.0 * sampleI); + + foundProc[sampleI] = Pstream::myProcNo(); } } - label nTotalCells = returnReduce(samplingPts.size(), sumOp