![]() |
Block-Structured AMR Software Framework
|
Specialization for the 1D case where no fast-division table is needed. More...
#include <AMReX_Box.H>
Public Types | |
| using | UInt = UIntT |
| using | Divmod |
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__ UInt | numPts () const |
| Return the number of points covered by the indexed box. | |
Public Attributes | |
| UInt | npts |
| IntVectND< 1 > | lo |
| Divmod | fdm [dim-1] |
Specialization for the 1D case where no fast-division table is needed.
| using amrex::BoxIndexerND< dim, UIntT >::Divmod |
| using amrex::BoxIndexerND< 1, UIntT >::UInt = UIntT |
|
inline |
Construct the 1D indexer; no fast divisors are needed because only one axis exists.
| box | Box that supplies the span. |
|
inlinenodiscard |
Convert flattened point index icell to the 1D coordinate.
| icell | Zero-based flattened point index. |
|
inlinenodiscard |
Return the number of points covered by the indexed box.
|
inlinenodiscard |
| Divmod amrex::BoxIndexerND< dim, UIntT >::fdm[dim-1] |
| IntVectND<1> amrex::BoxIndexerND< 1, UIntT >::lo |
| UInt amrex::BoxIndexerND< 1, UIntT >::npts |