Add GetPointsNotFoundIndices

This commit is contained in:
Joseph Signorelli
2025-08-13 15:05:11 -07:00
parent a36151569f
commit 86405d95a2
2 changed files with 16 additions and 0 deletions
+13
View File
@@ -2083,6 +2083,19 @@ void FindPointsGSLIB::InterpolateGeneral(const GridFunction &field_in,
} // parallel
}
const Array<unsigned int> FindPointsGSLIB::GetPointsNotFoundIndices() const
{
Array<int> nf_idxs;
for (int i = 0; i < gsl_code.Size(); i++)
{
if (gsl_code[i] == 2)
{
nf_idxs.Append(i);
}
}
return std::move(nf_idxs);
}
void FindPointsGSLIB::DistributePointInfoToOwningMPIRanks(
Array<unsigned int> &recv_elem, Vector &recv_ref,
Array<unsigned int> &recv_code)
+3
View File
@@ -312,6 +312,9 @@ public:
/// point found by FindPoints.
virtual const Vector &GetGSLIBReferencePosition() const { return gsl_ref; }
/// Get array of indices of not-found points.
const Array<unsigned int> GetPointsNotFoundIndices() const;
/** @name Methods to support a custom interpolation procedure.
\brief The physical-space point that the user seeks to interpolate at
could be located inside an element on another mpi rank.