Template Struct UniformGrid
Defined in File uniform_grid.h
Struct Documentation
-
template<unsigned dim>
struct UniformGrid Public Functions
-
inline LO ClosestCellID(const Omega_h::Vector<dim> &point) const
return the grid cell ID that the input point is inside or closest to if the point lies outside
-
inline LO AxisCellIndex(size_t axis, Real coord) const
Index of the cell containing
coordalongaxis, clamped to the grid. The single definition of the grid’s binning rule: keeping the point query and the cell-range query on this one formula is what guarantees a point always lands in a cell that its own element was binned into.
-
inline LO CellIndexFromAxisIndices(Kokkos::Array<LO, dim> indexes) const
Linear cell ID from per-axis indices given in coordinate order (x,y,z).
-
inline LO ClosestCellID(const Omega_h::Vector<dim> &point) const