IBAMR  IBAMR version 0.19.
Public Member Functions | Private Member Functions | Private Attributes | List of all members
IBTK::CopyToRootSchedule Class Reference

Class CopyToRootSchedule is used to communicate distributed patch data to a unified patch data object on a root MPI process. More...

#include <ibtk/CopyToRootSchedule.h>

Public Member Functions

 CopyToRootSchedule (int root_proc, SAMRAI::tbox::Pointer< SAMRAI::hier::PatchLevel< NDIM > > patch_level, int src_patch_data_idx)
 Constructor. More...
 
 CopyToRootSchedule (int root_proc, SAMRAI::tbox::Pointer< SAMRAI::hier::PatchLevel< NDIM > > patch_level, std::vector< int > src_patch_data_idxs)
 Constructor. More...
 
 ~CopyToRootSchedule ()=default
 Destructor. More...
 
void communicate ()
 Communicate data. More...
 
const std::vector< SAMRAI::tbox::Pointer< SAMRAI::hier::PatchData< NDIM > > > & getRootPatchData () const
 Get unified patch data. More...
 

Private Member Functions

 CopyToRootSchedule ()=delete
 Default constructor. More...
 
 CopyToRootSchedule (const CopyToRootSchedule &from)=delete
 Copy constructor. More...
 
CopyToRootScheduleoperator= (const CopyToRootSchedule &that)=delete
 Assignment operator. More...
 
void commonClassCtor ()
 

Private Attributes

const int d_root_proc
 
SAMRAI::tbox::Pointer< SAMRAI::hier::PatchLevel< NDIM > > d_patch_level
 
const std::vector< intd_src_patch_data_idxs
 
std::vector< SAMRAI::tbox::Pointer< SAMRAI::hier::PatchData< NDIM > > > d_root_patch_data
 
SAMRAI::tbox::Schedule d_schedule
 

Detailed Description

Note
This class is designed to be used with uniform grid data only.

Constructor & Destructor Documentation

◆ CopyToRootSchedule() [1/4]

IBTK::CopyToRootSchedule::CopyToRootSchedule ( int  root_proc,
SAMRAI::tbox::Pointer< SAMRAI::hier::PatchLevel< NDIM > >  patch_level,
int  src_patch_data_idx 
)

◆ CopyToRootSchedule() [2/4]

IBTK::CopyToRootSchedule::CopyToRootSchedule ( int  root_proc,
SAMRAI::tbox::Pointer< SAMRAI::hier::PatchLevel< NDIM > >  patch_level,
std::vector< int src_patch_data_idxs 
)

◆ ~CopyToRootSchedule()

IBTK::CopyToRootSchedule::~CopyToRootSchedule ( )
default

◆ CopyToRootSchedule() [3/4]

IBTK::CopyToRootSchedule::CopyToRootSchedule ( )
privatedelete
Note
This constructor is not implemented and should not be used.

◆ CopyToRootSchedule() [4/4]

IBTK::CopyToRootSchedule::CopyToRootSchedule ( const CopyToRootSchedule from)
privatedelete
Note
This constructor is not implemented and should not be used.
Parameters
fromThe value to copy to this object.

Member Function Documentation

◆ communicate()

void IBTK::CopyToRootSchedule::communicate ( )

◆ getRootPatchData()

const std::vector<SAMRAI::tbox::Pointer<SAMRAI::hier::PatchData<NDIM> > >& IBTK::CopyToRootSchedule::getRootPatchData ( ) const
Note
Patch data objects are allocated only on the root MPI process.

◆ operator=()

CopyToRootSchedule& IBTK::CopyToRootSchedule::operator= ( const CopyToRootSchedule that)
privatedelete
Note
This operator is not implemented and should not be used.
Parameters
thatThe value to assign to this object.
Returns
A reference to this object.

◆ commonClassCtor()

void IBTK::CopyToRootSchedule::commonClassCtor ( )
private

Member Data Documentation

◆ d_root_proc

const int IBTK::CopyToRootSchedule::d_root_proc
private

◆ d_patch_level

SAMRAI::tbox::Pointer<SAMRAI::hier::PatchLevel<NDIM> > IBTK::CopyToRootSchedule::d_patch_level
private

◆ d_src_patch_data_idxs

const std::vector<int> IBTK::CopyToRootSchedule::d_src_patch_data_idxs
private

◆ d_root_patch_data

std::vector<SAMRAI::tbox::Pointer<SAMRAI::hier::PatchData<NDIM> > > IBTK::CopyToRootSchedule::d_root_patch_data
private

◆ d_schedule

SAMRAI::tbox::Schedule IBTK::CopyToRootSchedule::d_schedule
private

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