Chombo + EB + MF  3.2
Public Member Functions | Private Member Functions | List of all members
RemoteCopier Class Reference

#include <RemoteCopier.H>

Inheritance diagram for RemoteCopier:
Inheritance graph
[legend]

Public Member Functions

 RemoteCopier ()
 
 RemoteCopier (const DisjointBoxLayout &a_level, const BoxLayout &a_dest, const IntVect &a_ghostVect=IntVect::Zero, bool a_exchange=false)
 
virtual ~RemoteCopier ()
 
void define (const DisjointBoxLayout &a_level, const BoxLayout &a_dest, const IntVect &a_destGhost, bool a_exchange=false)
 
void define (const DisjointBoxLayout &a_level, const BoxLayout &a_dest, bool a_exchange=false)
 
void define (const DisjointBoxLayout &a_from, const DisjointBoxLayout &a_to, const DisjointBoxLayout &a_sourceBoxes, const BoxLayout &a_destBoxes, const std::map< Box, Box > &sourceToDestMapping, const IntVect &a_destGhost, bool a_exchange=false)
 
void define (const DisjointBoxLayout &a_from, const DisjointBoxLayout &a_to, const DisjointBoxLayout &a_sourceBoxes, const BoxLayout &a_destBoxes, const std::map< Box, Box > &sourceToDestMapping, bool a_exchange=false)
 
- Public Member Functions inherited from Copier
 Copier ()
 null constructor, copy constructor and operator= can be compiler defined. More...
 
 Copier (const Copier &a_rhs)
 
 Copier (const DisjointBoxLayout &a_level, const BoxLayout &a_dest, bool a_exchange=false, IntVect a_shift=IntVect::Zero)
 
 Copier (const DisjointBoxLayout &a_level, const BoxLayout &a_dest, const ProblemDomain &a_domain, bool a_exchange=false, IntVect a_shift=IntVect::Zero)
 this constructor contains support for periodic BC's More...
 
 Copier (const DisjointBoxLayout &a_level, const BoxLayout &a_dest, const IntVect &a_destGhost, bool a_exchange=false, IntVect a_shift=IntVect::Zero)
 Copier to copy data into the valid and invalid regions of a_dest from a_level. More...
 
 Copier (const DisjointBoxLayout &a_level, const BoxLayout &a_dest, const ProblemDomain &a_domain, const IntVect &a_destGhost, bool a_exchange=false, IntVect a_shift=IntVect::Zero)
 Copier to copy data into the valid and invalid regions of a_dest from a_level with support for periodic BCs. More...
 
virtual ~Copier ()
 
virtual void define (const DisjointBoxLayout &a_level, const BoxLayout &a_dest, bool a_exchange=false, IntVect a_shift=IntVect::Zero)
 
virtual void define (const DisjointBoxLayout &a_level, const BoxLayout &a_dest, const ProblemDomain &a_domain, bool a_exchange=false, IntVect a_shift=IntVect::Zero)
 contains support for periodic BCs More...
 
virtual void define (const DisjointBoxLayout &a_level, const BoxLayout &a_dest, const IntVect &a_destGhost, bool a_exchange=false, IntVect a_shift=IntVect::Zero)
 
virtual void define (const BoxLayout &a_level, const BoxLayout &a_dest, const ProblemDomain &a_domain, const IntVect &a_destGhost, bool a_exchange=false, IntVect a_shift=IntVect::Zero)
 contains support for periodic BCs More...
 
virtual void exchangeDefine (const DisjointBoxLayout &a_grids, const IntVect &a_ghost, bool a_includeSelf=false)
 alternative version of define for exchange copiers that uses new optimized neighborIterator More...
 
void defineFixedBoxSize (const DisjointBoxLayout &a_src, const LMap &a_lmap, const IntVect &a_ghost, const ProblemDomain &a_domain, bool a_includeSelf=false, bool a_reverse=false)
 
void defineFixedBoxSize (const DisjointBoxLayout &a_src, const LMap &a_lmapSrc, const IntVect &a_refRatioSrc, const DisjointBoxLayout &a_dst, const LMap &a_lmapDst, const IntVect &a_refRatioDst, const IntVect &a_ghost, const ProblemDomain &a_domain, bool a_reverse=false)
 
void defineFixedSizeNodesCollect (const DisjointBoxLayout &a_layout, const LMap &a_lmap, const IntVect &a_ghostSrc, const IntVect &a_ghostDst, const ProblemDomain &a_domain)
 
void defineFixedSizeNodesCollect (const DisjointBoxLayout &a_src, const LMap &a_lmapSrc, const IntVect &a_refRatioSrc, const IntVect &a_ghostSrc, const DisjointBoxLayout &a_dst, const LMap &a_lmapDst, const IntVect &a_refRatioDst, const IntVect &a_ghostDst, const ProblemDomain &a_domain)
 
void ghostDefine (const DisjointBoxLayout &a_src, const DisjointBoxLayout &a_dest, const ProblemDomain &a_domain, const IntVect &a_srcGhost)
 performs the computation necessary for moving from ghost+valid cells to all valid cells in a_dest More...
 
void ghostDefine (const DisjointBoxLayout &a_src, const DisjointBoxLayout &a_dest, const ProblemDomain &a_domain, const IntVect &a_srcGhost, const IntVect &a_destGhost)
 performs the computation necessary for moving from ghost+valid cells to all valid+ghost cells in a_dest More...
 
virtual void clear ()
 
Copieroperator= (const Copier &b)
 
void reverse ()
 
void trimEdges (const DisjointBoxLayout &a_exchangedLayout, const IntVect &ghost)
 
void coarsen (int a_refRatio)
 
bool operator== (const Copier &rhs) const
 
int print () const
 
bool bufferAllocated () const
 
void setBufferAllocated (bool arg) const
 
int numLocalCellsToCopy () const
 
int numFromCellsToCopy () const
 
int numToCellsToCopy () const
 
bool isDefined () const
 

Private Member Functions

void define (const DisjointBoxLayout &a_level, const BoxLayout &a_dest, const ProblemDomain &a_domain, bool a_exchange=false)
 
void define (const BoxLayout &a_level, const BoxLayout &a_dest, const ProblemDomain &a_domain, const IntVect &a_destGhost, bool a_exchange=false)
 
void exchangeDefine (const DisjointBoxLayout &a_grids, const IntVect &a_ghost)
 
void ghostDefine (const DisjointBoxLayout &a_src, const DisjointBoxLayout &a_dest, const ProblemDomain &a_domain, const IntVect &a_srcGhost)
 
void reverse ()
 

Additional Inherited Members

- Public Attributes inherited from Copier
CopierBuffer m_buffers
 
std::vector< IndexTM< int, 2 > > m_range
 
- Protected Member Functions inherited from Copier
void trimMotion (const DisjointBoxLayout &a_exchangedLayout, const IntVect &a_ghost, const Vector< MotionItem *> &a_oldItems, Vector< MotionItem *> &a_newItems)
 
void sort ()
 
const ProblemDomaingetPhysDomain (const DisjointBoxLayout &a_level) const
 
- Protected Attributes inherited from Copier
Vector< MotionItem * > m_localMotionPlan
 
Vector< MotionItem * > m_fromMotionPlan
 
Vector< MotionItem * > m_toMotionPlan
 
bool buffersAllocated
 
DisjointBoxLayout m_originPlan
 
BoxLayout m_dest
 
bool m_isDefined
 
- Static Protected Attributes inherited from Copier
static Pool s_motionItemPool
 

Constructor & Destructor Documentation

◆ RemoteCopier() [1/2]

RemoteCopier::RemoteCopier ( )

◆ RemoteCopier() [2/2]

RemoteCopier::RemoteCopier ( const DisjointBoxLayout a_level,
const BoxLayout a_dest,
const IntVect a_ghostVect = IntVect::Zero,
bool  a_exchange = false 
)

◆ ~RemoteCopier()

virtual RemoteCopier::~RemoteCopier ( )
virtual

Member Function Documentation

◆ define() [1/6]

void RemoteCopier::define ( const DisjointBoxLayout a_level,
const BoxLayout a_dest,
const IntVect a_destGhost,
bool  a_exchange = false 
)

Referenced by define().

◆ define() [2/6]

void RemoteCopier::define ( const DisjointBoxLayout a_level,
const BoxLayout a_dest,
bool  a_exchange = false 
)
inline

References define(), and IntVect::Zero.

◆ define() [3/6]

void RemoteCopier::define ( const DisjointBoxLayout a_from,
const DisjointBoxLayout a_to,
const DisjointBoxLayout a_sourceBoxes,
const BoxLayout a_destBoxes,
const std::map< Box, Box > &  sourceToDestMapping,
const IntVect a_destGhost,
bool  a_exchange = false 
)

This allows one to define a transfer of information from boxes that are contained by those in a given disjoint box layout.

◆ define() [4/6]

void RemoteCopier::define ( const DisjointBoxLayout a_from,
const DisjointBoxLayout a_to,
const DisjointBoxLayout a_sourceBoxes,
const BoxLayout a_destBoxes,
const std::map< Box, Box > &  sourceToDestMapping,
bool  a_exchange = false 
)
inline

This allows one to define a transfer of information from boxes that are contained by those in a given disjoint box layout.

References define(), and IntVect::Zero.

◆ define() [5/6]

void RemoteCopier::define ( const DisjointBoxLayout a_level,
const BoxLayout a_dest,
const ProblemDomain a_domain,
bool  a_exchange = false 
)
inlineprivate

◆ define() [6/6]

void RemoteCopier::define ( const BoxLayout a_level,
const BoxLayout a_dest,
const ProblemDomain a_domain,
const IntVect a_destGhost,
bool  a_exchange = false 
)
inlineprivate

◆ exchangeDefine()

void RemoteCopier::exchangeDefine ( const DisjointBoxLayout a_grids,
const IntVect a_ghost 
)
inlineprivate

◆ ghostDefine()

void RemoteCopier::ghostDefine ( const DisjointBoxLayout a_src,
const DisjointBoxLayout a_dest,
const ProblemDomain a_domain,
const IntVect a_srcGhost 
)
inlineprivate

◆ reverse()

void RemoteCopier::reverse ( )
inlineprivate

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