Class GridPointSearch2D

Inheritance Relationships

Base Type

Class Documentation

class GridPointSearch2D : public pcms::PointLocalizationSearch<2>

Public Types

using Result = PointLocalizationSearch2D::Result

Public Functions

GridPointSearch2D(Omega_h::Mesh &mesh, LO Nx, LO Ny)
GridPointSearch2D(Omega_h::Mesh &mesh, LO Nx, LO Ny, const PointSearchTolerances &tolerances)
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.

virtual Kokkos::View<LO*> GetOwningElementIds(Kokkos::View<const Result*> results) const override