EBCFCopy Class Reference

#include <EBCFCopy.H>

List of all members.


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.

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)


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  )  [inline, private]

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  )  [inline, private]

References MayDay::Error().


Member Data Documentation

bool EBCFCopy::m_isDefined [protected]

int EBCFCopy::m_refRat [protected]

int EBCFCopy::m_nComp [protected]

bool EBCFCopy::m_layoutChanged [protected]

bool EBCFCopy::m_coarsenable [protected]


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

Generated on Fri Apr 5 04:25:01 2019 for Chombo + EB by  doxygen 1.5.5