Chombo + EB  3.0
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
EBCFCopy Class Reference

Copy coarse values from coarse cells to the fine cells covering them. More...

#include <EBCFCopy.H>

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)
 

Detailed Description

Copy coarse values from coarse cells to the fine cells covering them.

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.

Constructor & Destructor Documentation

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)
inlineprivate

References MayDay::Error().

Member Function Documentation

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)
inlineprivate

References MayDay::Error().

Member Data Documentation

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

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