#include <EBLevelGrid.H>
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
EBLevelGrid& EBLevelGrid::operator= | ( | const EBLevelGrid & | fabin | ) |
int EBLevelGrid::getGhost | ( | ) | const [inline] |
References m_isDefined, and m_nghost.
DisjointBoxLayout EBLevelGrid::getDBL | ( | ) | const [inline] |
EBISLayout EBLevelGrid::getEBISL | ( | ) | const [inline] |
References m_ebisl, and m_isDefined.
Referenced by EBViscousTensorOp::getFlux(), and EBAMRPoissonOp::getFlux().
RefCountedPtr<LayoutData<IntVectSet> > EBLevelGrid::getCFIVS | ( | ) | const [inline] |
References m_cfivs, and m_isDefined.
bool EBLevelGrid::isDefined | ( | ) | const [inline] |
References m_isDefined.
const EBIndexSpace* EBLevelGrid::getEBIS | ( | ) | const [inline] |
References m_ebisPtr, and m_isDefined.
const IntVectSet& EBLevelGrid::getCoveringIVS | ( | ) | const [inline] |
References defineCoveringIVS(), m_coveringIVS, m_isCoveringIVSDefined, and m_isDefined.
const ProblemDomain& EBLevelGrid::getDomain | ( | ) | const [inline] |
void EBLevelGrid::setMaxRefinementRatio | ( | const int & | a_maxRefine | ) | [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 m_ebisl, m_ebisPtr, m_isDefined, and EBISLayout::setMaxRefinementRatio().
void EBLevelGrid::setMaxCoarseningRatio | ( | const int & | a_maxCoarsen | ) | [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 m_ebisl, m_isDefined, and EBISLayout::setMaxCoarseningRatio().
int EBLevelGrid::getMaxCoarseningRatio | ( | ) | const [inline] |
References EBISLayout::getMaxCoarseningRatio(), m_ebisl, and m_isDefined.
int EBLevelGrid::getMaxRefinementRatio | ( | ) | const [inline] |
References EBISLayout::getMaxRefinementRatio(), m_ebisl, and m_isDefined.
bool EBLevelGrid::coarsenable | ( | const int & | a_ref | ) | const |
void EBLevelGrid::defineCoveringIVS | ( | ) | [protected] |
Referenced by getCoveringIVS().
void EBLevelGrid::setDefaultValues | ( | ) | [protected] |
void coarsen | ( | EBLevelGrid & | a_eblgCoar, | |
const EBLevelGrid & | a_eblgFine, | |||
const int & | a_ref | |||
) | [friend] |
Coarsen eblgFine by a_ref
bool EBLevelGrid::m_isDefined [protected] |
bool EBLevelGrid::m_isCoveringIVSDefined [protected] |
Referenced by getCoveringIVS().
DisjointBoxLayout EBLevelGrid::m_grids [protected] |
Referenced by getDBL().
EBISLayout EBLevelGrid::m_ebisl [protected] |
Referenced by getEBISL(), getMaxCoarseningRatio(), getMaxRefinementRatio(), setMaxCoarseningRatio(), and setMaxRefinementRatio().
ProblemDomain EBLevelGrid::m_domain [protected] |
Referenced by getDomain().
RefCountedPtr<LayoutData<IntVectSet> > EBLevelGrid::m_cfivs [protected] |
Referenced by getCFIVS().
IntVectSet EBLevelGrid::m_coveringIVS [protected] |
Referenced by getCoveringIVS().
const EBIndexSpace* EBLevelGrid::m_ebisPtr [protected] |
Referenced by getEBIS(), and setMaxRefinementRatio().
int EBLevelGrid::m_nghost [protected] |
Referenced by getGhost().