diff --git a/src/sampling/sampledSet/cloud/cloudSet.C b/src/sampling/sampledSet/cloud/cloudSet.C index 43d7f11fe70a646bd66b48a06b0014b67e3e0f31..8ce6fb6bec0d62439837e50cc04c2b1d83797b85 100644 --- a/src/sampling/sampledSet/cloud/cloudSet.C +++ b/src/sampling/sampledSet/cloud/cloudSet.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -66,6 +66,16 @@ void Foam::cloudSet::calcSamples samplingCurveDist.append(1.0 * sampleI); } } + + label nTotalCells = returnReduce(samplingPts.size(), sumOp<label>()); + if (nTotalCells < sampleCoords_.size()) + { + WarningInFunction + << "For sample set " << name() + << " found only " << nTotalCells << " out of " + << sampleCoords_.size() + << " input points." << endl; + } }