11 #ifndef _CODIMCOPYMANAGERI_H_ 12 #define _CODIMCOPYMANAGERI_H_ 17 #include "NamespaceHeader.H" 23 define(a_grids, a_dest, a_ghostVect, a_exchange, a_maxCoDim);
32 for (
int n=0; n<m_copierVect.size(); n++)
34 if (m_copierVect[n] != NULL)
36 delete m_copierVect[n];
37 m_copierVect[n] = NULL;
48 m_ghostVect = a_ghostVect;
53 m_copierVect.resize(a_maxCoDim-1, NULL);
54 for (
int n=0; n<a_maxCoDim-1; n++)
59 a_ghostVect, coDim, a_exchange);
60 m_copierVect[n] =
static_cast<Copier*
>(copyPtr);
70 for (
int n=0; n<m_copierVect.size(); n++)
82 for (
int n=0; n<m_copierVect.size(); n++)
84 a_data.
copyTo(a_dest, *m_copierVect[n]);
89 #include "NamespaceFooter.H" const ProblemDomain & physDomain() const
An even strangerer (than CornerCopier) thing to copy from ghost cells to corner ghost cells...
Definition: CoDimCopier.H:35
#define CH_assert(cond)
Definition: CHArray.H:37
void define(const DisjointBoxLayout &a_grids, const BoxLayout &a_dest, const IntVect &a_ghostVect, bool a_exchange=false, int a_maxCoDim=SpaceDim)
define
Definition: CoDimCopyManagerI.H:46
A not-necessarily-disjoint collective of boxes.
Definition: BoxLayout.H:145
A strange but true thing to make copying from one boxlayoutdata to another fast.
Definition: Copier.H:145
void manageCopies(const LevelData< T > &a_data, BoxLayoutData< T > &a_dest) const
orchestrates CoDim copies
Definition: CoDimCopyManagerI.H:80
virtual void exchange(void)
Simplest case – do all components.
Definition: LevelDataI.H:470
new code
Definition: BoxLayoutData.H:170
Data on a BoxLayout.
Definition: BoxLayoutData.H:97
virtual void copyTo(const Interval &srcComps, BoxLayoutData< T > &dest, const Interval &destComps) const
Definition: LevelDataI.H:221
A BoxLayout that has a concept of disjointedness.
Definition: DisjointBoxLayout.H:30
void manageExchanges(LevelData< T > &a_data) const
orchestrates CoDim exchanges
Definition: CoDimCopyManagerI.H:68
CoDimCopyManager()
null constructor
Definition: CoDimCopyManager.H:31
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
~CoDimCopyManager()
destructor
Definition: CoDimCopyManagerI.H:29