|
| | BoxArray () noexcept |
| | Construct an empty BoxArray.
|
| | BoxArray (const BoxArray &rhs)=default |
| | BoxArray (BoxArray &&rhs) noexcept=default |
| BoxArray & | operator= (BoxArray const &rhs)=default |
| BoxArray & | operator= (BoxArray &&rhs) noexcept=default |
| | ~BoxArray () noexcept=default |
| | BoxArray (const Box &bx) |
| | Make a BoxArray out of a single box.
|
| | BoxArray (size_t n) |
| | Construct a BoxArray with n empty boxes.
|
| | BoxArray (const Box *bxvec, int nbox) |
| | Construct a BoxArray from an array of Boxes.
|
| | BoxArray (const BoxList &bl) |
| | Construct a BoxArray from a BoxList.
|
| | BoxArray (BoxList &&bl) noexcept |
| | BoxArray (const BoxArray &rhs, const BATransformer &trans) |
| | Construct a BoxArray by applying a transformer to another array.
|
| | BoxArray (BoxList &&bl, IntVect const &max_grid_size) |
| | Construct from a BoxList with a maximum grid size constraint.
|
| void | define (const Box &bx) |
| | Initialize the BoxArray from a single box.
|
| void | define (const BoxList &bl) |
| | Initialize the BoxArray from the supplied BoxList.
|
| void | define (BoxList &&bl) noexcept |
| void | clear () |
| | Remove all Boxes from the BoxArray.
|
| void | resize (Long len) |
| | Resize the BoxArray. See Vector<T>::resize() for the gory details.
|
| Long | size () const noexcept |
| | Return the number of boxes in the BoxArray.
|
| Long | capacity () const noexcept |
| | Return the number of boxes that can be held in the current allocated storage.
|
| bool | empty () const noexcept |
| | Return whether the BoxArray is empty.
|
| Long | numPts () const noexcept |
| | Returns the total number of cells contained in all boxes in the BoxArray.
|
| double | d_numPts () const noexcept |
| | Returns the total number of cells (in double type) contained in all boxes in the BoxArray.
|
| int | readFrom (std::istream &is) |
| | Initialize the BoxArray from the supplied istream.
|
| std::ostream & | writeOn (std::ostream &) const |
| | Output this BoxArray to a checkpoint file.
|
| bool | operator== (const BoxArray &rhs) const noexcept |
| | Are the BoxArrays equal?
|
| bool | operator!= (const BoxArray &rhs) const noexcept |
| | Are the BoxArrays not equal?
|
| bool | operator== (const Vector< Box > &bv) const noexcept |
| bool | operator!= (const Vector< Box > &bv) const noexcept |
| bool | CellEqual (const BoxArray &rhs) const noexcept |
| | Are the BoxArrays equal after conversion to cell-centered.
|
| BoxArray & | maxSize (int block_size) |
| | Split any Box whose side length exceeds block_size.
|
| BoxArray & | maxSize (const IntVect &block_size) |
| | Split any Box whose dimensions exceed block_size.
|
| BoxArray & | minmaxSize (const IntVect &min_size, const IntVect &max_size) |
| | Constrain Box sizes between min_size and max_size.
|
| void | repartition (BoxList &&bl) |
| | Replace the Boxes with a different partition of the same cells.
|
| BoxArray & | refine (int refinement_ratio) |
| | Refine each Box in the BoxArray by refinement_ratio.
|
| BoxArray & | refine (const IntVect &iv) |
| | Refine each Box in the BoxArray by iv.
|
| BoxArray & | coarsen (int refinement_ratio) |
| | Coarsen each Box in the BoxArray by refinement_ratio.
|
| bool | coarsenable (int refinement_ratio, int min_width=1) const |
| | Check whether every Box is coarsenable by refinement_ratio.
|
| bool | coarsenable (const IntVect &refinement_ratio, int min_width=1) const |
| | Check whether every Box is coarsenable by refinement_ratio.
|
| bool | coarsenable (const IntVect &refinement_ratio, const IntVect &min_width) const |
| | Check whether every Box is coarsenable by refinement_ratio.
|
| BoxArray & | coarsen (const IntVect &iv) |
| | Coarsen each Box in the BoxArray by iv.
|
| BoxArray & | growcoarsen (int n, const IntVect &iv) |
| | Expand boxes by n cells in every direction, then coarsen by iv.
|
| BoxArray & | growcoarsen (IntVect const &ngrow, const IntVect &iv) |
| | Expand boxes by anisotropic grow cells, then coarsen by iv.
|
| BoxArray & | grow (int n) |
| | Grow each Box by n cells in every direction.
|
| BoxArray & | grow (const IntVect &iv) |
| | Grow each Box by iv cells.
|
| BoxArray & | grow (int idir, int n_cell) |
| | Grow each Box on both ends in dimension idir.
|
| BoxArray & | growLo (int idir, int n_cell) |
| | Grow each Box on the lower side of dimension idir.
|
| BoxArray & | growHi (int idir, int n_cell) |
| | Grow each Box on the upper side of dimension idir.
|
| BoxArray & | surroundingNodes () |
| | Convert the BoxArray to nodal type in all directions.
|
| BoxArray & | surroundingNodes (int dir) |
| | Convert the BoxArray to nodal type in direction dir.
|
| BoxArray & | enclosedCells () |
| | Convert the BoxArray to cell-centered type in all directions.
|
| BoxArray & | enclosedCells (int dir) |
| | Convert the BoxArray to cell-centered type in direction dir.
|
| BoxArray & | convert (IndexType typ) |
| | Set the IndexType of the BoxArray.
|
| BoxArray & | convert (const IntVect &iv) |
| | Set the IndexType of the BoxArray from an IntVect of flags.
|
| BoxArray & | convert (Box(*fp)(const Box &)) |
| | Apply fp to every Box in the BoxArray.
|
| BoxArray & | shift (int dir, int nzones) |
| | Shift each Box in the BoxArray by nzones cells in direction dir.
|
| BoxArray & | shift (const IntVect &iv) |
| | Shift each Box in the BoxArray by iv.
|
| void | set (int i, const Box &ibox) |
| | Set element i to ibox if no coarsening transformer is active.
|
| Box | operator[] (int index) const noexcept |
| | Return element index of this BoxArray.
|
| Box | operator[] (const MFIter &mfi) const noexcept |
| | Return element index of this BoxArray.
|
| Box | get (int index) const noexcept |
| | Return element index of this BoxArray.
|
| Box | getCellCenteredBox (int index) const noexcept |
| | Return cell-centered box at element index of this BoxArray.
|
| bool | ok () const |
| | Return true if the BoxArray is empty or every Box reports ok().
|
| bool | isDisjoint () const |
| | Return true if set of intersecting Boxes in BoxArray is null.
|
| BoxList | boxList () const |
| | Create a BoxList from this BoxArray.
|
| bool | contains (const IntVect &v) const |
| | Return true if the cell v is within any box in the array.
|
| bool | contains (const Box &b, bool assume_disjoint_ba=false, const IntVect &ng=IntVect(0)) const |
| | True if the Box is contained in this BoxArray(+ng).
|
| bool | contains (const BoxArray &ba, bool assume_disjoint_ba=false, const IntVect &ng=IntVect(0)) const |
| | True if all Boxes in ba are contained in this BoxArray(+ng).
|
| bool | contains (const BoxArray &ba, Periodicity const &period) const |
| | True if all indices in ba are periodically contained in this BoxArray.
|
| Box | minimalBox () const |
| | Return smallest Box that contains all Boxes in this BoxArray.
|
| Box | minimalBox (Long &npts_avg_box) const |
| | Return minimal enclosing box and average points per box.
|
| bool | intersects (const Box &b, int ng=0) const |
| | True if b intersects this BoxArray(+ng).
|
| bool | intersects (const Box &b, const IntVect &ng) const |
| | True if b intersects this BoxArray(+ng).
|
| std::vector< std::pair< int, Box > > | intersections (const Box &bx) const |
| | Return all intersections of bx with this BoxArray.
|
| std::vector< std::pair< int, Box > > | intersections (const Box &bx, bool first_only, int ng) const |
| | Return intersections of Box and BoxArray(+ghostcells).
|
| std::vector< std::pair< int, Box > > | intersections (const Box &bx, bool first_only, const IntVect &ng) const |
| | Return intersections of Box and BoxArray(+ghostcells).
|
| void | intersections (const Box &bx, std::vector< std::pair< int, Box > > &isects) const |
| | Intersect bx with the BoxArray and store the result in isects.
|
| void | intersections (const Box &bx, std::vector< std::pair< int, Box > > &isects, bool first_only, int ng) const |
| | Intersect bx with the BoxArray(+ghostcells) and store the result in isects.
|
| void | intersections (const Box &bx, std::vector< std::pair< int, Box > > &isects, bool first_only, const IntVect &ng) const |
| | Intersect bx with the BoxArray(+ghostcells) and store the result in isects.
|
| BoxList | complementIn (const Box &b) const |
| | Return box - boxarray.
|
| void | complementIn (BoxList &bl, const Box &b) const |
| BoxList | complementIn (const Box &b, const Periodicity &period) const |
| | Return box - periodic boxarray.
|
| void | clear_hash_bin () const |
| | Clear out the internal hash table used by intersections.
|
| void | removeOverlap (bool simplify=true) |
| | Change the BoxArray to one with no overlap and then simplify it (see the simplify function in BoxList).
|
| RefID | getRefID () const noexcept |
| | Return a unique ID of the reference.
|
| IndexType | ixType () const noexcept |
| | Return index type of this BoxArray.
|
| IntVect | crseRatio () const noexcept |
| | Return crse ratio of this BoxArray.
|
| void | uniqify () |
| | Make ourselves unique.
|
| BoxList const & | simplified_list () const |
| | Return (and cache) a simplified BoxList representation; regular AMR grids only.
|
| BoxArray | simplified () const |
| | Return a simplified BoxArray; regular AMR grids only.
|
| BATransformer const & | transformer () const |
| | Return the transformer describing index-type/coarsening metadata.
|
| std::weak_ptr< BARef > | getWeakRef () const |
| | Return a weak pointer to the shared Box storage.
|
| std::shared_ptr< BARef > const & | getSharedRef () const |
| | Return the shared pointer to the Box storage.
|
| std::shared_ptr< BARef > & | getSharedRef () |
| | Return a modifiable shared pointer to the Box storage.
|
Reference-counted collection of Boxes.
A BoxArray stores Boxes in integer index space along with optional transformations (e.g., nodal flags or coarsening ratios). Most operations modify the array in place, while free functions provide out-of-place variants.