Function pcms::omega_h::searchNeighbors
Defined in File adj_search.hpp
Function Documentation
-
SupportResults pcms::omega_h::searchNeighbors(Omega_h::Mesh &mesh, int site_dim, const Omega_h::Reals &target_coords, int seed_dim, Kokkos::View<const LO*, DeviceMemorySpace> seeds, Omega_h::Real cutoffDistance, Omega_h::LO min_req_support = 12, Omega_h::LO max_allowed_support = 36, bool adapt_radius = true)
Supports of query points among the sites of
mesh: a breadth-first search over the site adjacency from the sites of the elements at each point’s seed, keeping the sites within the cutoff.- Parameters:
site_dim – 0 for the mesh vertices as sites, mesh.dim() for the element centroids
target_coords – query points, flattened [x0, y0, …, x1, y1, …]
seed_dim – mesh.dim() if each point’s seed is the element it lies in, 0 if it is a vertex at the point (the search starts from the elements around it)
seeds – one seed per query point; a point with -1 gets no supports
cutoffDistance – initial squared radius of every query point