|
IBAMR
IBAMR version 0.19.
|
#include <LocallyActiveDataFillBoxSet.h>

Public Member Functions | |
| LocallyActiveDataFillBoxSet (const LocallyActiveDataFillBoxSet< DIM > &fill_box_set) | |
| Construct a new locally-active fill box set and copy the information from the argument locally-active fill box set. More... | |
| LocallyActiveDataFillBoxSet () | |
| Default constructor creates a new fill box set with an empty box set and active patch data information initialized to an unusable state. The box and the active patch must be set by calling resetLocallyActiveFillBoxes() or addLocallyActiveFillBox() functions on the constructed object. More... | |
| virtual | ~LocallyActiveDataFillBoxSet () |
| void | setTo (const LocallyActiveDataFillBoxSet< DIM > &fill_box_set) |
| int | getNumberOfBoxes () const |
| const tbox::List< xfer::LocallyActiveDataFillBox< DIM > > & | getLocallyActiveDataBoxes () const |
| const tbox::List< const typename xfer::RefineClasses< DIM >::Data * > & | getUnionActiveRefineVarData () const |
| const tbox::List< const typename xfer::CoarsenClasses< DIM >::Data * > & | getUnionActiveCoarsenVarData () const |
| void | resetLocallyActiveFillBoxes (const hier::Box< DIM > &box, const tbox::List< const typename xfer::RefineClasses< DIM >::Data * > &var_data) |
| void | resetLocallyActiveFillBoxes (const hier::Box< DIM > &box, const tbox::List< const typename xfer::CoarsenClasses< DIM >::Data * > &var_data) |
| void | addLocallyActiveFillBox (const hier::Box< DIM > &box, const tbox::List< const typename xfer::RefineClasses< DIM >::Data * > &var_data) |
| void | addLocallyActiveFillBox (const hier::Box< DIM > &box, const tbox::List< const typename xfer::CoarsenClasses< DIM >::Data * > &var_data) |
| void | intersectBoxes (const hier::Box< DIM > &box) |
| void | intersectBoxes (const hier::BoxList< DIM > &boxes) |
| virtual void | printClassData (std::ostream &os=tbox::plog) const |
| virtual void | resetFillBoxes (const hier::Box< DIM > &box) |
| virtual void | resetFillBoxes (const hier::BoxList< DIM > &boxes) |
| void | addFillBox (const hier::Box< DIM > &box) |
| const hier::Box< DIM > & | getBoundingBox () |
| const hier::BoxList< DIM > & | getBoxList () const |
| hier::BoxList< DIM > & | getBoxListToChange () |
| void | simplifyBoxes () |
| void | removeIntersections (const hier::Box< DIM > &takeaway) |
| void | removeIntersections (const hier::BoxList< DIM > &takeaway) |
| virtual void | print (std::ostream &os=tbox::plog) const |
Private Member Functions | |
| void | mergeLists (tbox::List< const typename xfer::RefineClasses< DIM >::Data * > &outlist, const tbox::List< const typename xfer::RefineClasses< DIM >::Data * > &inlist_a, const tbox::List< const typename xfer::RefineClasses< DIM >::Data * > &inlist_b) const |
| void | mergeLists (tbox::List< const typename xfer::CoarsenClasses< DIM >::Data * > &outlist, const tbox::List< const typename xfer::CoarsenClasses< DIM >::Data * > &inlist_a, const tbox::List< const typename xfer::CoarsenClasses< DIM >::Data * > &inlist_b) const |
| void | clearLocallyActiveFillBoxData () |
| bool | checkUnion (std::ostream &os=tbox::plog) const |
| void | printRefineVarListItems (const tbox::List< const typename xfer::RefineClasses< DIM >::Data * > &inlist, std::ostream &os=tbox::plog) const |
Private Attributes | |
| tbox::List< xfer::LocallyActiveDataFillBox< DIM > > | d_locally_active_boxes |
| tbox::List< const typename xfer::RefineClasses< DIM >::Data * > | d_union_refine_var_data |
| tbox::List< const typename xfer::CoarsenClasses< DIM >::Data * > | d_union_coarsen_var_data |
| bool | d_refine_data |
| hier::Box< DIM > | d_bounding_box |
| hier::BoxList< DIM > | d_boxes |
| bool | d_recompute_bounding_box |
Class LocallyActiveDataFillBoxSet is a utility class that provides "smart" boxlist operations in communication schedules that operate on "locally-active" data; i.e., where each data item may live on a different set of patches. This class is derived from the FillBoxSet class and extends the functionality of that base class for locally-active patch data. Specifically, this box maintains a colleciton of LocallyActiveDataFillBox objects, each of which contains a box and an associated list of either CoarseClass or RefineClass items, but not both.
| SAMRAI::xfer::LocallyActiveDataFillBoxSet< DIM >::LocallyActiveDataFillBoxSet | ( | const LocallyActiveDataFillBoxSet< DIM > & | fill_box_set | ) |
| fill_box_set | Constant reference to fill box set to be copied. |
| SAMRAI::xfer::LocallyActiveDataFillBoxSet< DIM >::LocallyActiveDataFillBoxSet | ( | ) |
|
virtual |
The destructor releases all box and locally-active data storage.
| void SAMRAI::xfer::LocallyActiveDataFillBoxSet< DIM >::setTo | ( | const LocallyActiveDataFillBoxSet< DIM > & | fill_box_set | ) |
Clears all existing box and locally-active data information for calling object and sets it to the state of the argument fill box set.
Note that this is essentially the same as an assignment opertor, but this implementation was chosen to avoid warnings with some compilers.
| int SAMRAI::xfer::LocallyActiveDataFillBoxSet< DIM >::getNumberOfBoxes | ( | ) | const |
Return number of boxes maintained by this locally-active fill box set.
| const tbox::List< xfer::LocallyActiveDataFillBox<DIM> >& SAMRAI::xfer::LocallyActiveDataFillBoxSet< DIM >::getLocallyActiveDataBoxes | ( | ) | const |
Return a const reference to the list of locally-active fill boxes owned by this object.
| const tbox::List<const typename xfer::RefineClasses<DIM>::Data*>& SAMRAI::xfer::LocallyActiveDataFillBoxSet< DIM >::getUnionActiveRefineVarData | ( | ) | const |
Return const reference to non-redundant list of refine items representing the union of all locally-active fill boxes owned by this object.
Note that if this object manages coarsen item data, an unrecoverable assertion will result.
| const tbox::List<const typename xfer::CoarsenClasses<DIM>::Data*>& SAMRAI::xfer::LocallyActiveDataFillBoxSet< DIM >::getUnionActiveCoarsenVarData | ( | ) | const |
Return const reference to non-redundant list of coarsen items representing the union of all locally-active fill boxes owned by this object.
Note that if this object manages refine item data, an unrecoverable assertion will result.
| void SAMRAI::xfer::LocallyActiveDataFillBoxSet< DIM >::resetLocallyActiveFillBoxes | ( | const hier::Box< DIM > & | box, |
| const tbox::List< const typename xfer::RefineClasses< DIM >::Data * > & | var_data | ||
| ) |
Set box and refine item information for this locally-active fill box set to given arguments.
| box | Input box. |
| var_data | Input list of refine class data pointers. |
Note that if this object currently manages coarsen item data, an unrecoverable assertion will result.
| void SAMRAI::xfer::LocallyActiveDataFillBoxSet< DIM >::resetLocallyActiveFillBoxes | ( | const hier::Box< DIM > & | box, |
| const tbox::List< const typename xfer::CoarsenClasses< DIM >::Data * > & | var_data | ||
| ) |
Set box and refine item information for this locally-active fill box set to given arguments.
| box | Input box. |
| var_data | Input list of coarsen class data pointers. |
Note that if this object currently manages coarsen item data, an unrecoverable assertion will result.
| void SAMRAI::xfer::LocallyActiveDataFillBoxSet< DIM >::addLocallyActiveFillBox | ( | const hier::Box< DIM > & | box, |
| const tbox::List< const typename xfer::RefineClasses< DIM >::Data * > & | var_data | ||
| ) |
Add box and refine item information to this locally-active fill box set.
| box | Input box. |
| var_data | Input list of refine class data pointers. |
Note that if this object currently manages coarsen item data, an unrecoverable assertion will result.
| void SAMRAI::xfer::LocallyActiveDataFillBoxSet< DIM >::addLocallyActiveFillBox | ( | const hier::Box< DIM > & | box, |
| const tbox::List< const typename xfer::CoarsenClasses< DIM >::Data * > & | var_data | ||
| ) |
Add box and coarsen item information to this locally-active fill box set.
| box | Input box. |
| var_data | Input list of coarsen class data pointers. |
Note that if this object currently manages refine item data, an unrecoverable assertion will result.
| void SAMRAI::xfer::LocallyActiveDataFillBoxSet< DIM >::intersectBoxes | ( | const hier::Box< DIM > & | box | ) |
Replace each box in the fill box set with its intersection with the argument box. Empty fill boxes will be removed.
| void SAMRAI::xfer::LocallyActiveDataFillBoxSet< DIM >::intersectBoxes | ( | const hier::BoxList< DIM > & | boxes | ) |
Replace each box in the fill box set with its intersection with the argument boxlist. Empty fill boxes will be removed.
|
virtual |
Print all class member data for this locally-active fill box set object to specified output stream (default is plog).
|
private |
|
private |
|
private |
|
private |
|
private |
|
virtualinherited |
Reset bounding box to be the argument box and replace fill box set with a set containing that one box.
|
virtualinherited |
Reset fill box set to be the argument box list and set bounding box to be the bounding box of the list.
|
inherited |
Add new fill box to head of box list representing the fill box set.
|
inherited |
Return const reference to bounding box for all boxes in the fill box set.
|
inherited |
Return const reference to box list describing the fill box set.
|
inherited |
Return (non-const) reference to box list describing the fill box set. This function should be used with care as the box list can be changed.
|
inherited |
Invoke box list routine of same name on the fill box set owned by this object.
|
inherited |
If argument box intersects the bounding box owned by this object, then invoke the box list routine of same name on the fill box set owned by this object. Otherwise do nothing.
|
inherited |
Invoke box list routine of same name on the fill box set owned by this object.
|
virtualinherited |
Print all class member data for this fill box set object to specified output stream.
|
private |
|
private |
|
private |
|
private |
|
privateinherited |
|
privateinherited |
|
privateinherited |
1.8.17