#include <EBCFCopy.H>
Copy coarse values from coarse cells to the fine cells covering them. This was adapted from EBMGInterp to live in EBTools instead of EBAMRTools because it's used by EBIndexSpace.
Public Member Functions | |
EBCFCopy () | |
~EBCFCopy () | |
EBCFCopy (const DisjointBoxLayout &a_dblFine, const DisjointBoxLayout &a_dblCoar, const EBISLayout &a_ebislFine, const EBISLayout &a_ebislCoar, const ProblemDomain &a_domainCoar, const int &a_nref, const int &a_nvar, const EBIndexSpace *a_ebisPtr, const IntVect &a_ghostCellsPhi, const bool &a_layoutChanged=true) | |
void | define (const DisjointBoxLayout &a_dblFine, const DisjointBoxLayout &a_dblCoar, const EBISLayout &a_ebislFine, const EBISLayout &a_ebislCoar, const ProblemDomain &a_domainCoar, const int &a_nref, const int &a_nvar, const EBIndexSpace *a_ebisPtr, const IntVect &a_ghostCellsPhi, const bool &a_layoutChanged=true) |
bool | isDefined () const |
void | copy (LevelData< EBCellFAB > &a_fineData, const LevelData< EBCellFAB > &a_coarseData, const Interval &a_variables) |
void | copySameLayout (LevelData< EBCellFAB > &a_fineData, const LevelData< EBCellFAB > &a_coarseData, const Interval &a_variables) |
Protected Member Functions | |
void | copyFAB (EBCellFAB &a_refCoar, const Box &a_coarBox, const EBCellFAB &a_fine, const DataIndex &a_datInd, const Interval &a_variables) const |
void | setDefaultValues () |
void | defineStencils () |
Protected Attributes | |
bool | m_isDefined |
IntVect | m_ghost |
DisjointBoxLayout | m_coarGrids |
DisjointBoxLayout | m_fineGrids |
ProblemDomain | m_coarDomain |
ProblemDomain | m_fineDomain |
EBISLayout | m_coarEBISL |
EBISLayout | m_fineEBISL |
int | m_refRat |
int | m_nComp |
bool | m_layoutChanged |
bool | m_coarsenable |
DisjointBoxLayout | m_buffGrids |
EBISLayout | m_buffEBISL |
Copier | m_copierFtoRC |
Copier | m_copierRCtoF |
LayoutData< RefCountedPtr < EBStencil > > | m_copyEBStencil |
Private Member Functions | |
EBCFCopy (const EBCFCopy &ebcin) | |
void | operator= (const EBCFCopy &fabin) |
EBCFCopy::EBCFCopy | ( | ) |
Default constructor. User must subsequently call define().
EBCFCopy::~EBCFCopy | ( | ) |
EBCFCopy::EBCFCopy | ( | const DisjointBoxLayout & | a_dblFine, | |
const DisjointBoxLayout & | a_dblCoar, | |||
const EBISLayout & | a_ebislFine, | |||
const EBISLayout & | a_ebislCoar, | |||
const ProblemDomain & | a_domainCoar, | |||
const int & | a_nref, | |||
const int & | a_nvar, | |||
const EBIndexSpace * | a_ebisPtr, | |||
const IntVect & | a_ghostCellsPhi, | |||
const bool & | a_layoutChanged = true | |||
) |
Defining constructor. Constructs a valid object. Equivalent to default construction followed by define().
{ Arguments:}\ dblFine, dblCoar: The fine and coarse layouts of the data.\ ebislFine, ebislCoar: The fine and coarse layouts of the geometric description.\ nref: The refinement ratio between the two levels. \ nvar: The number of variables contained in the data at each VoF.
EBCFCopy::EBCFCopy | ( | const EBCFCopy & | ebcin | ) | [inline, private] |
References MayDay::Error().
void EBCFCopy::define | ( | const DisjointBoxLayout & | a_dblFine, | |
const DisjointBoxLayout & | a_dblCoar, | |||
const EBISLayout & | a_ebislFine, | |||
const EBISLayout & | a_ebislCoar, | |||
const ProblemDomain & | a_domainCoar, | |||
const int & | a_nref, | |||
const int & | a_nvar, | |||
const EBIndexSpace * | a_ebisPtr, | |||
const IntVect & | a_ghostCellsPhi, | |||
const bool & | a_layoutChanged = true | |||
) |
Defines this object. Existing information is overriden.
{ Arguments:}\ dblFine, dblCoar: The fine and coarse layouts of the data.\ ebislFine, ebislCoar: The fine and coarse layouts of the geometric description.\ nref: The refinement ratio between the two levels. \ nvar: The number of variables contained in the data at each VoF.
bool EBCFCopy::isDefined | ( | ) | const |
Returns true if this object was created with the defining constructor or if define() has been called.
void EBCFCopy::copy | ( | LevelData< EBCellFAB > & | a_fineData, | |
const LevelData< EBCellFAB > & | a_coarseData, | |||
const Interval & | a_variables | |||
) |
Copy coarse data to the fine data covering them (agglomeration allowed). fine data = coarse data
void EBCFCopy::copySameLayout | ( | LevelData< EBCellFAB > & | a_fineData, | |
const LevelData< EBCellFAB > & | a_coarseData, | |||
const Interval & | a_variables | |||
) |
Copy coarse data to the fine data covering them (no agglomeration allowed). There are no copyTo's here. fine data = coarse data
void EBCFCopy::copyFAB | ( | EBCellFAB & | a_refCoar, | |
const Box & | a_coarBox, | |||
const EBCellFAB & | a_fine, | |||
const DataIndex & | a_datInd, | |||
const Interval & | a_variables | |||
) | const [protected] |
void EBCFCopy::setDefaultValues | ( | ) | [protected] |
void EBCFCopy::defineStencils | ( | ) | [protected] |
void EBCFCopy::operator= | ( | const EBCFCopy & | fabin | ) | [inline, private] |
References MayDay::Error().
bool EBCFCopy::m_isDefined [protected] |
IntVect EBCFCopy::m_ghost [protected] |
DisjointBoxLayout EBCFCopy::m_coarGrids [protected] |
DisjointBoxLayout EBCFCopy::m_fineGrids [protected] |
ProblemDomain EBCFCopy::m_coarDomain [protected] |
ProblemDomain EBCFCopy::m_fineDomain [protected] |
EBISLayout EBCFCopy::m_coarEBISL [protected] |
EBISLayout EBCFCopy::m_fineEBISL [protected] |
int EBCFCopy::m_refRat [protected] |
int EBCFCopy::m_nComp [protected] |
bool EBCFCopy::m_layoutChanged [protected] |
bool EBCFCopy::m_coarsenable [protected] |
DisjointBoxLayout EBCFCopy::m_buffGrids [protected] |
EBISLayout EBCFCopy::m_buffEBISL [protected] |
Copier EBCFCopy::m_copierFtoRC [protected] |
Copier EBCFCopy::m_copierRCtoF [protected] |
LayoutData<RefCountedPtr<EBStencil> > EBCFCopy::m_copyEBStencil [protected] |