IBAMR
An adaptive and distributed-memory parallel implementation of the immersed boundary (IB) method
Public Member Functions | Protected Attributes | List of all members
IBTK::SAMRAIGhostDataAccumulator Class Reference

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
 

Detailed Description

Class that can accumulate data summed into ghost regions on a patch hierarchy into their correct locations.

Constructor & Destructor Documentation

◆ SAMRAIGhostDataAccumulator()

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.

◆ ~SAMRAIGhostDataAccumulator()

IBTK::SAMRAIGhostDataAccumulator::~SAMRAIGhostDataAccumulator ( )

Destructor.

Member Function Documentation

◆ accumulateGhostData()

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.

Member Data Documentation

◆ d_cc_data

bool IBTK::SAMRAIGhostDataAccumulator::d_cc_data = true
protected

Boolean indicating whether or not we have cell-centered data.

◆ d_coarsest_ln

const int IBTK::SAMRAIGhostDataAccumulator::d_coarsest_ln = invalid_level_number
protected

Coarsest level of the patch hierarchy on which we work.

◆ d_finest_ln

const int IBTK::SAMRAIGhostDataAccumulator::d_finest_ln = invalid_level_number
protected

Finest level of the patch hierarchy on which we work.

◆ d_gcw

const SAMRAI::hier::IntVector<NDIM> IBTK::SAMRAIGhostDataAccumulator::d_gcw
protected

Ghost cell width.

◆ d_global_dof_idx

int IBTK::SAMRAIGhostDataAccumulator::d_global_dof_idx = IBTK::invalid_index
protected

Index into d_hierarchy that contains the dof numbering.

◆ d_hierarchy

SAMRAI::tbox::Pointer<SAMRAI::hier::BasePatchHierarchy<NDIM> > IBTK::SAMRAIGhostDataAccumulator::d_hierarchy
protected

Pointer to the patch hierarchy under consideration.

◆ d_local_dof_idx

int IBTK::SAMRAIGhostDataAccumulator::d_local_dof_idx = IBTK::invalid_index
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.

◆ d_var

SAMRAI::tbox::Pointer<SAMRAI::hier::Variable<NDIM> > IBTK::SAMRAIGhostDataAccumulator::d_var
protected

Pointer to the variable whose data layout we copied.

◆ d_vecs

std::vector<Vec> IBTK::SAMRAIGhostDataAccumulator::d_vecs
protected

PETSc Vec objects storing the global ordering on each level.


The documentation for this class was generated from the following files: