Skip to content
Snippets Groups Projects
Commit 9d63e7f7 authored by mattijs's avatar mattijs
Browse files

ENH: cloudSet: report missing samples. (fixes #228)

parent a20a17f5
Branches
Tags
No related merge requests found
......@@ -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;
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment