IBAMR
An adaptive and distributed-memory parallel implementation of the immersed boundary (IB) method
Public Member Functions | 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 </home/runner/work/IBAMR/IBAMR/ibtk/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.
 
 CopyToRootSchedule (int root_proc, SAMRAI::tbox::Pointer< SAMRAI::hier::PatchLevel< NDIM > > patch_level, std::vector< int > src_patch_data_idxs)
 Constructor.
 
 ~CopyToRootSchedule ()=default
 Destructor.
 
void communicate ()
 Communicate data.
 
const std::vector< SAMRAI::tbox::Pointer< SAMRAI::hier::PatchData< NDIM > > > & getRootPatchData () const
 Get unified patch data. More...
 

Detailed Description

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

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

Member Function Documentation

◆ getRootPatchData()

const std::vector< Pointer< PatchData< NDIM > > > & IBTK::CopyToRootSchedule::getRootPatchData ( ) const

Get unified patch data.

Note
Patch data objects are allocated only on the root MPI process.

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