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

An even stranger (than Copier) thing to copy from ghost cells to corner ghost cells. More...

#include <CornerCopier.H>

Inheritance diagram for CornerCopier:
Inheritance graph
[legend]

Public Member Functions

 CornerCopier ()
 null constructor, copy constructor and operator= can be compiler defined. More...
 
 CornerCopier (const DisjointBoxLayout &a_level, const BoxLayout &a_dest, bool a_exchange=false)
 Basic defining constructor. More...
 
 CornerCopier (const DisjointBoxLayout &a_level, const BoxLayout &a_dest, const ProblemDomain &a_domain, bool a_exchange=false)
 this constructor contains support for periodic BC's More...
 
 CornerCopier (const DisjointBoxLayout &a_level, const BoxLayout &a_dest, const IntVect &a_ghost, bool a_exchange=false)
 Copier to copy into corner ghost cells of a_dest from ghost cells of a_level. More...
 
 CornerCopier (const DisjointBoxLayout &a_level, const BoxLayout &a_dest, const ProblemDomain &a_domain, const IntVect &a_ghost, bool a_exchange=false)
 Copier to copy data into the valid and invalid regions of a_dest from a_level with support for periodic BCs. More...
 
virtual ~CornerCopier ()
 
virtual void define (const DisjointBoxLayout &a_level, const BoxLayout &a_dest, bool a_exchange=false)
 define to match constructor (also doesn't do anything) More...
 
virtual void define (const DisjointBoxLayout &a_level, const BoxLayout &a_dest, const ProblemDomain &a_domain, bool a_exchange=false)
 define to match constructor (also doesn't do anything) More...
 
virtual void define (const DisjointBoxLayout &a_level, const BoxLayout &a_dest, const IntVect &a_ghost, bool a_exchange=false)
 
virtual void define (const BoxLayout &a_level, const BoxLayout &a_dest, const ProblemDomain &a_domain, const IntVect &a_ghost, bool a_exchange=false)
 contains support for periodic BCs More...
 
virtual void clear ()
 
const IntVectghost ()
 
- 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 defineFixedSizeNodesCollect (const DisjointBoxLayout &a_layout, const LMap &a_lmap, const IntVect &a_ghostSrc, 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...
 
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 Attributes

IntVect m_ghost
 

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
 

Detailed Description

An even stranger (than Copier) thing to copy from ghost cells to corner ghost cells.

This is a specialized Copier to fill corner ghost cells from ghost cells of adjacent boxes. Calling exchange with this copier will fill only the corner ghost cells. All other exchange operations should be performed by calling a separate exchange with a normal Copier.

Constructor & Destructor Documentation

CornerCopier::CornerCopier ( )
inline

null constructor, copy constructor and operator= can be compiler defined.

References m_ghost, and IntVect::Unit.

CornerCopier::CornerCopier ( const DisjointBoxLayout a_level,
const BoxLayout a_dest,
bool  a_exchange = false 
)

Basic defining constructor.

Note that this constructor doesn't take a ghost cell argument, so it creates a useless CornerCopier (no intersections are computed). Provided for compatibility with Copier base class.

CornerCopier::CornerCopier ( const DisjointBoxLayout a_level,
const BoxLayout a_dest,
const ProblemDomain a_domain,
bool  a_exchange = false 
)

this constructor contains support for periodic BC's

Note that this constructor doesn't take a ghost cell argument, so it creates a useless CornerCopier (no intersections are computed). Provided for compatibility with Copier base class.

CornerCopier::CornerCopier ( const DisjointBoxLayout a_level,
const BoxLayout a_dest,
const IntVect a_ghost,
bool  a_exchange = false 
)

Copier to copy into corner ghost cells of a_dest from ghost cells of a_level.

Assumption is that a_dest and a_level have the same number of ghost cells.

CornerCopier::CornerCopier ( const DisjointBoxLayout a_level,
const BoxLayout a_dest,
const ProblemDomain a_domain,
const IntVect a_ghost,
bool  a_exchange = false 
)

Copier to copy data into the valid and invalid regions of a_dest from a_level with support for periodic BCs.

Assumption is that a_dest and a_level have the same number of ghost cells.

virtual CornerCopier::~CornerCopier ( )
virtual

Member Function Documentation

virtual void CornerCopier::define ( const DisjointBoxLayout a_level,
const BoxLayout a_dest,
bool  a_exchange = false 
)
virtual

define to match constructor (also doesn't do anything)

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

define to match constructor (also doesn't do anything)

virtual void CornerCopier::define ( const DisjointBoxLayout a_level,
const BoxLayout a_dest,
const IntVect a_ghost,
bool  a_exchange = false 
)
virtual
virtual void CornerCopier::define ( const BoxLayout a_level,
const BoxLayout a_dest,
const ProblemDomain a_domain,
const IntVect a_ghost,
bool  a_exchange = false 
)
virtual

contains support for periodic BCs

virtual void CornerCopier::clear ( )
virtual

Reimplemented from Copier.

const IntVect& CornerCopier::ghost ( )
inline

References m_ghost.

Member Data Documentation

IntVect CornerCopier::m_ghost
private

Referenced by CornerCopier(), and ghost().


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