Chombo + EB  3.2
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() [1/3]

EBCFCopy::EBCFCopy ( )

Default constructor. User must subsequently call define().

◆ ~EBCFCopy()

EBCFCopy::~EBCFCopy ( )

◆ EBCFCopy() [2/3]

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() [3/3]

EBCFCopy::EBCFCopy ( const EBCFCopy ebcin)
inlineprivate

References MayDay::Error().

Member Function Documentation

◆ define()

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.

◆ isDefined()

bool EBCFCopy::isDefined ( ) const

Returns true if this object was created with the defining constructor or if define() has been called.

◆ copy()

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

◆ copySameLayout()

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

◆ copyFAB()

void EBCFCopy::copyFAB ( EBCellFAB a_refCoar,
const Box a_coarBox,
const EBCellFAB a_fine,
const DataIndex a_datInd,
const Interval a_variables 
) const
protected

◆ setDefaultValues()

void EBCFCopy::setDefaultValues ( )
protected

◆ defineStencils()

void EBCFCopy::defineStencils ( )
protected

◆ operator=()

void EBCFCopy::operator= ( const EBCFCopy fabin)
inlineprivate

References MayDay::Error().

Member Data Documentation

◆ m_isDefined

bool EBCFCopy::m_isDefined
protected

◆ m_ghost

IntVect EBCFCopy::m_ghost
protected

◆ m_coarGrids

DisjointBoxLayout EBCFCopy::m_coarGrids
protected

◆ m_fineGrids

DisjointBoxLayout EBCFCopy::m_fineGrids
protected

◆ m_coarDomain

ProblemDomain EBCFCopy::m_coarDomain
protected

◆ m_fineDomain

ProblemDomain EBCFCopy::m_fineDomain
protected

◆ m_coarEBISL

EBISLayout EBCFCopy::m_coarEBISL
protected

◆ m_fineEBISL

EBISLayout EBCFCopy::m_fineEBISL
protected

◆ m_refRat

int EBCFCopy::m_refRat
protected

◆ m_nComp

int EBCFCopy::m_nComp
protected

◆ m_layoutChanged

bool EBCFCopy::m_layoutChanged
protected

◆ m_coarsenable

bool EBCFCopy::m_coarsenable
protected

◆ m_buffGrids

DisjointBoxLayout EBCFCopy::m_buffGrids
protected

◆ m_buffEBISL

EBISLayout EBCFCopy::m_buffEBISL
protected

◆ m_copierFtoRC

Copier EBCFCopy::m_copierFtoRC
protected

◆ m_copierRCtoF

Copier EBCFCopy::m_copierRCtoF
protected

◆ m_copyEBStencil

LayoutData<RefCountedPtr<EBStencil> > EBCFCopy::m_copyEBStencil
protected

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