![]() |
Block-Structured AMR Software Framework
|
Specialization for the 1D case where no fast-division table is needed. More...
#include <AMReX_Box.H>
Public Member Functions | |
| BoxIndexerND (BoxND< 1 > const &box) | |
| Construct the 1D indexer; no fast divisors are needed because only one axis exists. | |
| __host__ __device__ IntVectND< 1 > | intVect (std::uint64_t icell) const |
Convert flattened point index icell to the 1D coordinate. | |
| __host__ __device__ Dim3 | operator() (std::uint64_t icell) const |
| Return the coordinate padded to Dim3. | |
| __host__ __device__ std::uint64_t | numPts () const |
| Return the number of points covered by the indexed box. | |
Public Attributes | |
| std::uint64_t | npts |
| int | lo |
Specialization for the 1D case where no fast-division table is needed.
|
inline |
Construct the 1D indexer; no fast divisors are needed because only one axis exists.
| box | Box that supplies the span. |
|
inline |
Convert flattened point index icell to the 1D coordinate.
| icell | Zero-based flattened point index. |
|
inline |
Return the number of points covered by the indexed box.
|
inline |
| int amrex::BoxIndexerND< 1 >::lo |
| std::uint64_t amrex::BoxIndexerND< 1 >::npts |