mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: probes: filter out points that cannot be found. Fixes #492.
This commit is contained in:
@ -129,11 +129,11 @@ void Foam::patchProbes::findElements(const fvMesh& mesh)
|
||||
if (isA<emptyPolyPatch>(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
|
||||
|
||||
Reference in New Issue
Block a user