#include <source/hierarchy/variables/BoxOverlap.h>
Inheritance diagram for SAMRAI::hier::BoxOverlap< DIM >:
Public Member Functions | |
BoxOverlap () | |
virtual | ~BoxOverlap () |
virtual bool | isOverlapEmpty () const=0 |
virtual const IntVector< DIM > & | getSourceOffset () const=0 |
virtual void | print (std::ostream &os) const |
The BoxOverlap<DIM> class provides two functions. First, it serves as a base class that can answer the question whether an intersection is empty, and is therefore useful for determining communication dependencies. Second, it is a storage location for the exact form of the intersection of the data residing on two boxes, which can be quite complicated (for example, for face centered boxes). In the second case, access to the intersection data is via narrowing the interface via type-safe type casting and using the subclass member functions.
SAMRAI::hier::BoxOverlap< DIM >::BoxOverlap | ( | ) | [inline] |
The default constructor for BoxOverlap<DIM> does nothing interesting.
SAMRAI::hier::BoxOverlap< DIM >::~BoxOverlap | ( | ) | [virtual] |
The virtual destructor does nothing interesting.
virtual bool SAMRAI::hier::BoxOverlap< DIM >::isOverlapEmpty | ( | ) | const [pure virtual] |
Return true if intersecting boxes have no communication dependencies. Note that two boxes may communicate even if they do not intersect in the underlying AMR index space (e.g., if data values exist at the outside portions of the cells).
Implemented in SAMRAI::pdat::CellOverlap< DIM >, SAMRAI::pdat::EdgeOverlap< DIM >, SAMRAI::pdat::FaceOverlap< DIM >, SAMRAI::pdat::NodeOverlap< DIM >, and SAMRAI::pdat::SideOverlap< DIM >.
virtual const IntVector<DIM>& SAMRAI::hier::BoxOverlap< DIM >::getSourceOffset | ( | ) | const [pure virtual] |
Return the offset between the destination and source index spaces. The destination index space is the source index space shifted by this amount.
Implemented in SAMRAI::pdat::CellOverlap< DIM >, SAMRAI::pdat::EdgeOverlap< DIM >, SAMRAI::pdat::FaceOverlap< DIM >, SAMRAI::pdat::NodeOverlap< DIM >, and SAMRAI::pdat::SideOverlap< DIM >.
void SAMRAI::hier::BoxOverlap< DIM >::print | ( | std::ostream & | os | ) | const [virtual] |
Output the box overlap.
Reimplemented in SAMRAI::pdat::CellOverlap< DIM >.