|
constexpr AMREX_GPU_HOST_DEVICE | Box () noexcept |
|
constexpr AMREX_GPU_HOST_DEVICE | Box (const IntVect &small, const IntVect &big) noexcept |
| Construct cell-centered type Box. More...
|
|
AMREX_GPU_HOST_DEVICE | Box (const IntVect &small, const int *vec_len) noexcept |
| Construct box with specified lengths. More...
|
|
AMREX_GPU_HOST_DEVICE | Box (const IntVect &small, const IntVect &big, const IntVect &typ) noexcept |
| Construct Box with given type. small and big are expected to be consistent with given type. More...
|
|
AMREX_GPU_HOST_DEVICE | Box (const IntVect &small, const IntVect &big, IndexType t) noexcept |
| Construct dimension specific Boxes. More...
|
|
template<typename T > |
AMREX_GPU_HOST_DEVICE | Box (Array4< T > const &a) noexcept |
|
AMREX_GPU_HOST_DEVICE const IntVect & | smallEnd () const &noexcept |
| Get the smallend of the box. More...
|
|
const IntVect & | smallEnd () &&=delete |
| Get the smallend of the box. More...
|
|
AMREX_GPU_HOST_DEVICE int | smallEnd (int dir) const &noexcept |
| Returns the coordinate of the low end in the given direction. More...
|
|
AMREX_GPU_HOST_DEVICE const IntVect & | bigEnd () const &noexcept |
| Get the bigend. More...
|
|
const IntVect & | bigEnd () &&=delete |
| Get the bigend. More...
|
|
AMREX_GPU_HOST_DEVICE int | bigEnd (int dir) const noexcept |
| Returns the coordinate of the high end in the given direction. More...
|
|
AMREX_GPU_HOST_DEVICE IndexType | ixType () const noexcept |
| Returns the indexing type. More...
|
|
AMREX_GPU_HOST_DEVICE IntVect | type () const noexcept |
| Returns the indexing type. More...
|
|
AMREX_GPU_HOST_DEVICE IndexType::CellIndex | type (int dir) const noexcept |
| Returns the indexing type in the specified direction. More...
|
|
AMREX_GPU_HOST_DEVICE IntVect | size () const noexcept |
| Return the length of the Box. More...
|
|
AMREX_GPU_HOST_DEVICE IntVect | length () const noexcept |
| Return the length of the Box. More...
|
|
AMREX_GPU_HOST_DEVICE int | length (int dir) const noexcept |
| Return the length of the Box in given direction. More...
|
|
AMREX_GPU_HOST_DEVICE GpuArray< int, 3 > | length3d () const noexcept |
|
AMREX_GPU_HOST_DEVICE GpuArray< int, 3 > | loVect3d () const noexcept |
|
AMREX_GPU_HOST_DEVICE GpuArray< int, 3 > | hiVect3d () const noexcept |
|
AMREX_GPU_HOST_DEVICE const int * | loVect () const &noexcept |
| Returns a constant pointer the array of low end coordinates. Useful for calls to FORTRAN. More...
|
|
AMREX_GPU_HOST_DEVICE const int * | loVect () &&=delete |
|
AMREX_GPU_HOST_DEVICE const int * | hiVect () const &noexcept |
| Returns a constant pointer the array of high end coordinates. Useful for calls to FORTRAN. More...
|
|
AMREX_GPU_HOST_DEVICE const int * | hiVect () &&=delete |
|
AMREX_GPU_HOST_DEVICE int | operator[] (Orientation face) const noexcept |
| Returns the coordinate normal to given face. More...
|
|
AMREX_GPU_HOST_DEVICE bool | isEmpty () const noexcept |
| Checks if it is an empty box. More...
|
|
AMREX_GPU_HOST_DEVICE bool | ok () const noexcept |
| Checks if it is a proper Box (including a valid type). More...
|
|
AMREX_GPU_HOST_DEVICE bool | contains (const IntVect &p) const noexcept |
| Returns true if argument is contained within Box. More...
|
|
AMREX_GPU_HOST_DEVICE bool | contains (const Dim3 &p) const noexcept |
| Returns true if argument is contained within Box. More...
|
|
AMREX_GPU_HOST_DEVICE bool | contains (int i, int, int) const noexcept |
| Returns true if argument is contained within Box. More...
|
|
AMREX_GPU_HOST_DEVICE bool | contains (const Box &b) const noexcept |
| Returns true if argument is contained within Box. It is an error if the Boxes have different types. More...
|
|
AMREX_GPU_HOST_DEVICE bool | strictly_contains (const IntVect &p) const noexcept |
| Returns true if argument is strictly contained within Box. More...
|
|
AMREX_GPU_HOST_DEVICE bool | strictly_contains (const Box &b) const noexcept |
| Returns true if argument is strictly contained within Box. It is an error if the Boxes have different types. More...
|
|
AMREX_GPU_HOST_DEVICE bool | strictly_contains (int i, int, int) const noexcept |
| Returns true if argument is strictly contained within Box. More...
|
|
AMREX_GPU_HOST_DEVICE bool | intersects (const Box &b) const noexcept |
| Returns true if Boxes have non-null intersections. It is an error if the Boxes have different types. More...
|
|
AMREX_GPU_HOST_DEVICE bool | sameSize (const Box &b) const noexcept |
| Returns true is Boxes same size, ie translates of each other,. It is an error if they have different types. More...
|
|
AMREX_GPU_HOST_DEVICE bool | sameType (const Box &b) const noexcept |
| Returns true if Boxes have same type. More...
|
|
AMREX_GPU_HOST_DEVICE bool | operator== (const Box &b) const noexcept |
| Returns true if Boxes are identical (including type). More...
|
|
AMREX_GPU_HOST_DEVICE bool | operator!= (const Box &b) const noexcept |
| Returns true if Boxes differ (including type). More...
|
|
AMREX_GPU_HOST_DEVICE bool | operator< (const Box &rhs) const noexcept |
|
AMREX_GPU_HOST_DEVICE bool | operator<= (const Box &rhs) const noexcept |
|
AMREX_GPU_HOST_DEVICE bool | operator> (const Box &rhs) const noexcept |
|
AMREX_GPU_HOST_DEVICE bool | operator>= (const Box &rhs) const noexcept |
|
AMREX_GPU_HOST_DEVICE bool | cellCentered () const noexcept |
| Returns true if Box is cell-centered in all indexing directions. More...
|
|
AMREX_GPU_HOST_DEVICE Long | numPts () const noexcept |
| Returns the number of points contained in the Box. More...
|
|
AMREX_GPU_HOST_DEVICE double | d_numPts () const noexcept |
| Returns the number of points contained in the Box. This is intended for use only in diagnostic messages. More...
|
|
AMREX_GPU_HOST_DEVICE Long | volume () const noexcept |
| Return the volume, in indexing space, of region enclosed by this Box. This is identical to numPts() for CELL centered Box; otherwise, numPts() > volume(). More...
|
|
AMREX_GPU_HOST_DEVICE int | longside (int &dir) const noexcept |
| Returns length of longest side. dir is modified to give direction with longest side: 0...SPACEDIM-1. Ignores type. More...
|
|
AMREX_GPU_HOST_DEVICE int | longside () const noexcept |
| Returns length of longest side. Ignores type. More...
|
|
AMREX_GPU_HOST_DEVICE int | shortside (int &dir) const noexcept |
| Returns length of shortest side. dir is modified to give direction with shortest side: 0...SPACEDIM-1. Ignores type. More...
|
|
AMREX_GPU_HOST_DEVICE int | shortside () const noexcept |
| Returns length of shortest side. Ignores type. More...
|
|
AMREX_GPU_HOST_DEVICE Long | index (const IntVect &v) const noexcept |
| Returns offset of point from smallend; i.e. index(smallend) -> 0, bigend would return numPts()-1. Is used in accessing FArrayBox. More...
|
|
AMREX_GPU_HOST_DEVICE IntVect | atOffset (Long offset) const noexcept |
| Given the offset, compute IntVect. More...
|
|
AMREX_GPU_HOST_DEVICE GpuArray< int, 3 > | atOffset3d (Long offset) const noexcept |
|
AMREX_GPU_HOST_DEVICE Box & | setSmall (const IntVect &sm) noexcept |
| Redefine the small end of the Box. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | setSmall (int dir, int sm_index) noexcept |
| Redefine the small end of the Box. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | setBig (const IntVect &bg) noexcept |
| Redefine the big end of the Box. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | setBig (int dir, int bg_index) noexcept |
| Redefine the big end of the Box. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | setRange (int dir, int sm_index, int n_cells=1) noexcept |
| Set the entire range in a given direction, starting at sm_index with length n_cells. NOTE: This will yield an illegal Box if n_cells <= 0. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | setType (const IndexType &t) noexcept |
| Set indexing type. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | shift (int dir, int nzones) noexcept |
| Shift this Box nzones indexing positions in coordinate direction dir. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | shift (const IntVect &iv) noexcept |
| Equivalent to b.shift(0,iv[0]).shift(1,iv[1]) .... More...
|
|
AMREX_GPU_HOST_DEVICE Box & | shiftHalf (int dir, int num_halfs) noexcept |
| This member shifts the Box by "half" indices, thereby converting the Box from type CELL to NODE and visa-versa. b.shiftHalf(0,1) shifts b to the right by 1/2 cells. b.shiftHalf(1,-3) shifts b in the -j direction by 3/2 cells. NOTE: If num_halfs is EVEN the shift is num_halfs/2 full zones and hence will not change the type. This is: b.shifthalf(4) == b.shift(2). More...
|
|
AMREX_GPU_HOST_DEVICE Box & | shiftHalf (const IntVect &iv) noexcept |
| Equivalent to b.shiftHalf(0,iv[0]).shiftHalf(1,iv[1]) ... More...
|
|
AMREX_GPU_HOST_DEVICE Box & | convert (IndexType typ) noexcept |
| Convert the Box from the current type into the argument type. This may change the Box coordinates: type CELL -> NODE : increase coordinate by one on high end type NODE -> CELL : reduce coordinate by one on high end other type mappings make no change. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | convert (const IntVect &typ) noexcept |
| Convert the Box from the current type into the argument type. This may change the Box coordinates: type CELL -> NODE : increase coordinate by one on high end type NODE -> CELL : reduce coordinate by one on high end other type mappings make no change. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | surroundingNodes () noexcept |
| Convert to NODE type in all directions. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | surroundingNodes (int dir) noexcept |
| Convert to NODE type in given direction. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | surroundingNodes (Direction d) noexcept |
|
AMREX_GPU_HOST_DEVICE Box & | enclosedCells () noexcept |
| Convert to CELL type in all directions. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | enclosedCells (int dir) noexcept |
| Convert to CELL type in given direction. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | enclosedCells (Direction d) noexcept |
|
AMREX_GPU_HOST_DEVICE Box | operator& (const Box &rhs) const noexcept |
| Return Box that is intersection of this Box and argument. The Boxes MUST be of same type. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | operator&= (const Box &rhs) noexcept |
| Intersect this Box with its argument. The Boxes MUST be of the same type. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | minBox (const Box &b) noexcept |
| Modify Box to that of the minimum Box containing both the original Box and the argument. Both Boxes must have identical type. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | operator+= (const IntVect &v) noexcept |
| Shift Box (relative) by given IntVect. More...
|
|
AMREX_GPU_HOST_DEVICE Box | operator+ (const IntVect &v) const noexcept |
| Shift Box (relative) by given IntVect. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | operator-= (const IntVect &v) noexcept |
| Shift Box (relative) by given IntVect. More...
|
|
AMREX_GPU_HOST_DEVICE Box | operator- (const IntVect &v) const noexcept |
| Shift Box (relative) by given IntVect. More...
|
|
AMREX_GPU_HOST_DEVICE Box | chop (int dir, int chop_pnt) noexcept |
| Chop the Box at the chop_pnt in the dir direction returns one Box, modifies the object Box. The union of the two is the original Box. The modified Box is the low end, the returned Box is the high end. If type(dir) = CELL, the Boxes are disjoint with the chop_pnt included in the high end (new Box). It is an ERROR if chop_pnt is the low end of the orig Box. If type(dir) = NODE, the chop_pnt is included in both Boxes but is the only point in common. It is also an error if the chop_pnt is an end node of the Box. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | grow (int i) noexcept |
|
AMREX_GPU_HOST_DEVICE Box & | grow (const IntVect &v) noexcept |
| Grow Box in each direction by specified amount. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | grow (int idir, int n_cell) noexcept |
| Grow the Box on the low and high end by n_cell cells in direction idir. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | grow (Direction d, int n_cell) noexcept |
|
AMREX_GPU_HOST_DEVICE Box & | growLo (int idir, int n_cell=1) noexcept |
| Grow the Box on the low end by n_cell cells in direction idir. NOTE: n_cell negative shrinks the Box by that number of cells. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | growLo (Direction d, int n_cell=1) noexcept |
|
AMREX_GPU_HOST_DEVICE Box & | growHi (int idir, int n_cell=1) noexcept |
| Grow the Box on the high end by n_cell cells in direction idir. NOTE: n_cell negative shrinks the Box by that number of cells. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | growHi (Direction d, int n_cell=1) noexcept |
|
AMREX_GPU_HOST_DEVICE Box & | grow (Orientation face, int n_cell=1) noexcept |
| Grow in the direction of the given face. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | refine (int ref_ratio) noexcept |
| Refine Box by given (positive) refinement ratio. NOTE: if type(dir) = CELL centered: lo <- lo*ratio and hi <- (hi+1)*ratio - 1. NOTE: if type(dir) = NODE centered: lo <- lo*ratio and hi <- hi*ratio. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | refine (const IntVect &ref_ratio) noexcept |
|
AMREX_GPU_HOST_DEVICE Box & | coarsen (int ref_ratio) noexcept |
| Coarsen Box by given (positive) refinement ratio. NOTE: if type(dir) = CELL centered: lo <- lo/ratio and hi <- hi/ratio. NOTE: if type(dir) = NODE centered: lo <- lo/ratio and hi <- hi/ratio + ((hiratio)==0 ? 0 : 1). That is, refinement of coarsened Box must contain the original Box. More...
|
|
AMREX_GPU_HOST_DEVICE Box & | coarsen (const IntVect &ref_ratio) noexcept |
| Coarsen Box by given (positive) refinement ratio. NOTE: if type(dir) = CELL centered: lo <- lo/ratio and hi <- hi/ratio. NOTE: if type(dir) = NODE centered: lo <- lo/ratio and hi <- hi/ratio + ((hiratio)==0 ? 0 : 1). That is, refinement of coarsened Box must contain the original Box. More...
|
|
AMREX_GPU_HOST_DEVICE void | next (IntVect &) const noexcept |
| Step through the rectangle. It is a runtime error to give a point not inside rectangle. Iteration may not be efficient. More...
|
|
AMREX_GPU_HOST_DEVICE bool | isSquare () const noexcept |
|
AMREX_GPU_HOST_DEVICE bool | coarsenable (const IntVect &refrat, const IntVect &min_width) const noexcept |
|
AMREX_GPU_HOST_DEVICE bool | coarsenable (int refrat, int min_width=1) const noexcept |
|
AMREX_GPU_HOST_DEVICE bool | coarsenable (const IntVect &refrat, int min_width=1) const noexcept |
|
AMREX_GPU_HOST_DEVICE void | normalize () noexcept |
|
AMREX_GPU_HOST_DEVICE Box & | makeSlab (int direction, int slab_index) noexcept |
|