|
| BndryRegisterT () noexcept=default |
| The default constructor. More...
|
|
| BndryRegisterT (const BoxArray &grids_, const DistributionMapping &dmap, int in_rad, int out_rad, int extent_rad, int ncomp) |
| The constructor, given number of cells in/out, extent and number of components (assumes cell-centered boxes, and allocates cell-centered FABs) More...
|
|
| ~BndryRegisterT ()=default |
| The destructor. More...
|
|
| BndryRegisterT (BndryRegisterT< MF > &&rhs) noexcept=default |
|
| BndryRegisterT (const BndryRegisterT< MF > &src)=delete |
|
BndryRegisterT & | operator= (const BndryRegisterT< MF > &src)=delete |
|
BndryRegisterT & | operator= (BndryRegisterT< MF > &&rhs)=delete |
|
void | define (const BoxArray &grids_, const DistributionMapping &dmap, int in_rad, int out_rad, int extent_rad, int ncomp) |
|
void | define (Orientation face, IndexType typ, int in_rad, int out_rad, int extent_rad, int ncomp, const DistributionMapping &dm) |
| Build FABs along given face, specifying the DistributionMapping. More...
|
|
void | clear () |
|
const BoxArray & | boxes () const noexcept |
| Get box domain (as an array of boxes). More...
|
|
int | size () const noexcept |
| Return the number of grids in this domain. More...
|
|
const FabSetT< MF > & | operator[] (Orientation face) const noexcept |
| Return const set of FABs bounding the domain grid boxes on a given orientation. More...
|
|
FabSetT< MF > & | operator[] (Orientation face) noexcept |
| Return set of FABs bounding the domain grid boxes on a given orientation. More...
|
|
void | setVal (value_type v) |
| Set all boundary FABs to given value. More...
|
|
BndryRegisterT< MF > & | operator+= (const BndryRegisterT< MF > &rhs) |
| register += rhs More...
|
|
BndryRegisterT< MF > & | plus (const BndryRegisterT< MF > &rhs) |
|
BndryRegisterT< MF > & | copyFrom (const MF &src, int nghost, int src_comp, int dest_comp, int num_comp, const Periodicity &period=Periodicity::NonPeriodic()) |
| Fill the boundary FABs on intersection with given MF. More...
|
|
BndryRegisterT< MF > & | plusFrom (const MF &src, int nghost, int src_comp, int dest_comp, int num_comp, const Periodicity &period=Periodicity::NonPeriodic()) |
| Increment the boundary FABs on intersect with given MF. More...
|
|
BndryRegisterT< MF > & | linComb (value_type a, const MF &mfa, int a_comp, value_type b, const MF &mfb, int b_comp, int dest_comp, int num_comp, int n_ghost=0) |
| Linear combination: this := a*mfa + b*mfb on intersection of MFs with the boundary FABs. More...
|
|
void | setBoxes (const BoxArray &grids) |
| Set box domain, if not set previously. More...
|
|
const DistributionMapping & | DistributionMap () const noexcept |
| Returns constant reference to associated DistributionMapping. More...
|
|
void | write (const std::string &name, std::ostream &os) const |
| Write (used for writing to checkpoint) More...
|
|
void | read (const std::string &name, std::istream &is) |
| Read (used for reading from checkpoint) More...
|
|
template<typename MF>
class amrex::BndryRegisterT< MF >
A BndryRegister organizes FabSets bounding each grid in a BoxArray. A FabSet is maintained for each boundary orientation, as well as the BoxArray domain of definition.
A BndryRegister object contains a list of FabSets bounding the grids in a BoxArray. The FabSet FABs are at the same refinement level as the grids they bound, and are accessed and modified via a variety of member functions.
Non-default instantiation allocates a set of FABs, grown into and out of the bounding surfaces of each box in the BoxArray. The width of the layer (in/out), as well as the "extent" of a bounding FABs (the number of nodes beyond the box boundaries, parallel to the grid surface) are determined by constructor argument. All boxes and FABs in this context are assumed to be cell-centered.
A small number of linear mathematical operations are provided for BndryRegisters, as well as overloaded [] operators for access based on grid boundary orientation. The BoxArray domain of definition is accessible, but not resettable,