IBAMR
An adaptive and distributed-memory parallel implementation of the immersed boundary (IB) method
|
Class that can accumulate data summed into ghost regions on a patch hierarchy into their correct locations. More...
#include </home/runner/work/IBAMR/IBAMR/ibtk/include/ibtk/SAMRAIGhostDataAccumulator.h>
Public Member Functions | |
SAMRAIGhostDataAccumulator (SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchHierarchy< NDIM > > patch_hierarchy, SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > var, const SAMRAI::hier::IntVector< NDIM > gcw, const int coarsest_ln, const int finest_ln) | |
void | accumulateGhostData (const int idx) |
~SAMRAIGhostDataAccumulator () | |
Protected Attributes | |
SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchHierarchy< NDIM > > | d_hierarchy |
SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > | d_var |
const SAMRAI::hier::IntVector< NDIM > | d_gcw |
const int | d_coarsest_ln = invalid_level_number |
const int | d_finest_ln = invalid_level_number |
bool | d_cc_data = true |
int | d_global_dof_idx = IBTK::invalid_index |
int | d_local_dof_idx = IBTK::invalid_index |
std::vector< Vec > | d_vecs |
Class that can accumulate data summed into ghost regions on a patch hierarchy into their correct locations.
IBTK::SAMRAIGhostDataAccumulator::SAMRAIGhostDataAccumulator | ( | SAMRAI::tbox::Pointer< SAMRAI::hier::BasePatchHierarchy< NDIM > > | patch_hierarchy, |
SAMRAI::tbox::Pointer< SAMRAI::hier::Variable< NDIM > > | var, | ||
const SAMRAI::hier::IntVector< NDIM > | gcw, | ||
const int | coarsest_ln, | ||
const int | finest_ln | ||
) |
Constructor.
IBTK::SAMRAIGhostDataAccumulator::~SAMRAIGhostDataAccumulator | ( | ) |
Destructor.
void IBTK::SAMRAIGhostDataAccumulator::accumulateGhostData | ( | const int | idx | ) |
Accumulate data by summing values in ghost positions into the entry on the owning processor associated with the same degree of freedom.
|
protected |
Boolean indicating whether or not we have cell-centered data.
|
protected |
Coarsest level of the patch hierarchy on which we work.
|
protected |
Finest level of the patch hierarchy on which we work.
|
protected |
Ghost cell width.
|
protected |
Index into d_hierarchy that contains the dof numbering.
|
protected |
Pointer to the patch hierarchy under consideration.
|
protected |
Index into d_hierarchy that contains the local (i.e., the indices directly into the buffer owned by each Vec in d_vecs) dof numbering.
|
protected |
Pointer to the variable whose data layout we copied.
|
protected |
PETSc Vec objects storing the global ordering on each level.