Class GridPointSearch2D
Defined in File point_search.h
Inheritance Relationships
Base Type
public pcms::PointLocalizationSearch< 2 >(Template Class PointLocalizationSearch)
Class Documentation
-
class GridPointSearch2D : public pcms::PointLocalizationSearch<2>
Public Types
-
using Result = PointLocalizationSearch2D::Result
Public Functions
-
Kokkos::View<Result*> operator()(Kokkos::View<const Real*[DIM]> point) const override
Given points in global coordinates, returns for each the entity (vertex, edge or face, chosen with the vertex and edge tolerances) containing it and the point’s barycentric coordinates in a face adjacent to that entity.
-
virtual LO GetOwningElementId(const Result &result) override
This function provides a temporary solution to retrieve the original behavior of the point search, which previously returned the face ID regardless of which entity the search result belonged to. Many parts of the codebase still rely on this legacy behavior. After updating the point search to return the exact entity, this function can be called to retrieve the old behavior and ensure correctness. Long term, the implementation should be updated to properly handle the new result.
-
using Result = PointLocalizationSearch2D::Result