Chombo + EB
3.0
|
#include <EBLevelGrid.H>
Public Member Functions | |
EBLevelGrid () | |
~EBLevelGrid () | |
EBLevelGrid (const DisjointBoxLayout &a_dbl, const ProblemDomain &a_domain, const int &a_numGhostEBISL, const EBIndexSpace *a_ebisPtr) | |
EBLevelGrid (const DisjointBoxLayout &a_dbl, const EBISLayout &a_ebisl, const ProblemDomain &a_domain) | |
void | define (const DisjointBoxLayout &a_dbl, const ProblemDomain &a_domain, const int &a_numGhostEBISL, const EBIndexSpace *a_ebisPtr) |
void | define (const DisjointBoxLayout &a_dbl, const EBISLayout &a_ebisl, const ProblemDomain &a_domain) |
EBLevelGrid (const EBLevelGrid &ebcin) | |
int | getGhost () const |
DisjointBoxLayout | getDBL () const |
EBISLayout | getEBISL () const |
RefCountedPtr< LayoutData< IntVectSet > > | getCFIVS () const |
bool | isDefined () const |
const EBIndexSpace * | getEBIS () const |
const IntVectSet & | getCoveringIVS () const |
const ProblemDomain & | getDomain () const |
void | setMaxRefinementRatio (const int &a_maxRefine) |
void | setMaxCoarseningRatio (const int &a_maxCoarsen, const EBIndexSpace *const a_ebisPtr) |
int | getMaxCoarseningRatio () const |
int | getMaxRefinementRatio () const |
bool | coarsenable (const int &a_ref) const |
Protected Member Functions | |
void | defineCoveringIVS () |
void | setDefaultValues () |
Protected Attributes | |
bool | m_isDefined |
bool | m_isCoveringIVSDefined |
DisjointBoxLayout | m_grids |
EBISLayout | m_ebisl |
ProblemDomain | m_domain |
RefCountedPtr< LayoutData< IntVectSet > > | m_cfivs |
IntVectSet | m_coveringIVS |
const EBIndexSpace * | m_ebisPtr |
int | m_nghost |
Friends | |
void | coarsen (EBLevelGrid &a_eblgCoar, const EBLevelGrid &a_eblgFine, const int &a_ref) |
void | refine (EBLevelGrid &a_eblgCoar, const EBLevelGrid &a_eblgFine, const int &a_ref) |
A structure to hold the various components of an EB calculation grid.
EBLevelGrid::EBLevelGrid | ( | ) |
Default constructor. User must subsequently call define().
EBLevelGrid::~EBLevelGrid | ( | ) |
EBLevelGrid::EBLevelGrid | ( | const DisjointBoxLayout & | a_dbl, |
const ProblemDomain & | a_domain, | ||
const int & | a_numGhostEBISL, | ||
const EBIndexSpace * | a_ebisPtr | ||
) |
Defining constructor. Constructs a valid object. Equivalent to default construction followed by define().
EBLevelGrid::EBLevelGrid | ( | const DisjointBoxLayout & | a_dbl, |
const EBISLayout & | a_ebisl, | ||
const ProblemDomain & | a_domain | ||
) |
EBLevelGrid::EBLevelGrid | ( | const EBLevelGrid & | ebcin | ) |
void EBLevelGrid::define | ( | const DisjointBoxLayout & | a_dbl, |
const ProblemDomain & | a_domain, | ||
const int & | a_numGhostEBISL, | ||
const EBIndexSpace * | a_ebisPtr | ||
) |
Define function that generates EBISL and CFIVS
void EBLevelGrid::define | ( | const DisjointBoxLayout & | a_dbl, |
const EBISLayout & | a_ebisl, | ||
const ProblemDomain & | a_domain | ||
) |
only generates cfivs. set EBISPtr = chombo_ebis::instance
|
inline |
References CH_assert, m_isDefined, and m_nghost.
|
inline |
References CH_assert, m_grids, and m_isDefined.
Referenced by EBViscousTensorOp::diagonalScale(), EBViscousTensorOp::divideByIdentityCoef(), and EBFastFR::reflux().
|
inline |
References CH_assert, m_ebisl, and m_isDefined.
Referenced by EBAMRPoissonOp::getFlux(), and EBFastFR::reflux().
|
inline |
References CH_assert, m_cfivs, and m_isDefined.
|
inline |
References m_isDefined.
|
inline |
References CH_assert, m_ebisPtr, and m_isDefined.
|
inline |
References CH_assert, defineCoveringIVS(), m_coveringIVS, m_isCoveringIVSDefined, and m_isDefined.
|
inline |
References CH_assert, m_domain, and m_isDefined.
Referenced by EBAMRPoissonOp::getFlux().
|
inline |
Sets the maximum level of refinement that the EBISLayout will have to perform. Creates and holds new EBISLayouts at intermediate levels of refinement. Default is one (no refinement done).
References CH_assert, m_ebisl, m_ebisPtr, m_isDefined, and EBISLayout::setMaxRefinementRatio().
|
inline |
Sets the maximum level of coarsening that the will have to perform. Creates and holds new EBISLayouts at intermediate levels of refinement. Default is one (no coarsening done).
References CH_assert, m_ebisl, m_isDefined, and EBISLayout::setMaxCoarseningRatio().
|
inline |
References CH_assert, EBISLayout::getMaxCoarseningRatio(), m_ebisl, and m_isDefined.
|
inline |
References CH_assert, coarsen, coarsenable(), defineCoveringIVS(), EBISLayout::getMaxRefinementRatio(), m_ebisl, m_isDefined, refine, and setDefaultValues().
bool EBLevelGrid::coarsenable | ( | const int & | a_ref | ) | const |
Referenced by getMaxRefinementRatio().
|
protected |
Referenced by getCoveringIVS(), and getMaxRefinementRatio().
|
protected |
Referenced by getMaxRefinementRatio().
|
friend |
Coarsen eblgFine by a_ref
Referenced by getMaxRefinementRatio().
|
friend |
Referenced by getMaxRefinementRatio().
|
protected |
|
protected |
Referenced by getCoveringIVS().
|
protected |
Referenced by getDBL().
|
protected |
Referenced by getEBISL(), getMaxCoarseningRatio(), getMaxRefinementRatio(), setMaxCoarseningRatio(), and setMaxRefinementRatio().
|
protected |
Referenced by getDomain().
|
protected |
Referenced by getCFIVS().
|
protected |
Referenced by getCoveringIVS().
|
protected |
Referenced by getEBIS(), and setMaxRefinementRatio().
|
protected |
Referenced by getGhost().