Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
amrex::BoxIndexerND< 1 > Struct Reference

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
 

Detailed Description

Specialization for the 1D case where no fast-division table is needed.

Constructor & Destructor Documentation

◆ BoxIndexerND()

amrex::BoxIndexerND< 1 >::BoxIndexerND ( BoxND< 1 > const &  box)
inline

Construct the 1D indexer; no fast divisors are needed because only one axis exists.

Parameters
boxBox that supplies the span.

Member Function Documentation

◆ intVect()

__host__ __device__ IntVectND< 1 > amrex::BoxIndexerND< 1 >::intVect ( std::uint64_t  icell) const
inline

Convert flattened point index icell to the 1D coordinate.

Parameters
icellZero-based flattened point index.
Returns
Coordinate within the tracked box.

◆ numPts()

__host__ __device__ std::uint64_t amrex::BoxIndexerND< 1 >::numPts ( ) const
inline

Return the number of points covered by the indexed box.

Returns
Total number of points.

◆ operator()()

__host__ __device__ Dim3 amrex::BoxIndexerND< 1 >::operator() ( std::uint64_t  icell) const
inline

Return the coordinate padded to Dim3.

Parameters
icellZero-based flattened point index.
Returns
Coordinate as Dim3.

Member Data Documentation

◆ lo

◆ npts

std::uint64_t amrex::BoxIndexerND< 1 >::npts

The documentation for this struct was generated from the following file: