#include <EBISLayout.H>
Public Member Functions | |
const EBISBox & | operator[] (const DataIndex &a_index) const |
void | setMaxRefinementRatio (const int &a_maxRefine, const EBIndexSpace *const a_ebisPtr) |
void | setMaxCoarseningRatio (const int &a_maxCoarsen, const EBIndexSpace *const a_ebisPtr) |
int | getGhost () const |
EBISLayout () | |
const BoxLayout & | getGrownLayout () const |
const DisjointBoxLayout & | getDisjointLayout () const |
~EBISLayout () | |
VolIndex | coarsen (const VolIndex &a_vof, const int &a_ratio, const DataIndex &a_datInd) const |
Vector< VolIndex > | refine (const VolIndex &a_vof, const int &a_ratio, const DataIndex &a_datInd) const |
Vector< FaceIndex > | refine (const FaceIndex &a_face, const int &a_ratio, const DataIndex &a_datInd) const |
int | getMaxCoarseningRatio () const |
int | getMaxRefinementRatio () const |
void | define (const ProblemDomain &a_domain, const DisjointBoxLayout &a_grids, const int &a_nghost, const LevelData< EBGraph > &a_graph, const LevelData< EBData > &a_data, const Real &a_dx, bool a_hasMoments) |
bool | isDefined () const |
const EBIndexSpace * | getEBIS () const |
void | setEBIS (const EBIndexSpace *const a_ebisPtr) |
int | refCount () const |
const ProblemDomain & | getDomain () const |
Private Attributes | |
RefCountedPtr< EBISLayoutImplem > | m_implem |
int | m_nghost |
EBISLayout::EBISLayout | ( | ) |
EBISLayout::~EBISLayout | ( | ) |
void EBISLayout::setMaxRefinementRatio | ( | const int & | a_maxRefine, | |
const EBIndexSpace *const | a_ebisPtr | |||
) |
Sets the maximum level of refinement that this { EBISLayout} will have to perform. Creates and holds new { EBISLayout}s at intermediate levels of refinement. Default is one (no refinement done).
Referenced by EBLevelGrid::setMaxRefinementRatio().
void EBISLayout::setMaxCoarseningRatio | ( | const int & | a_maxCoarsen, | |
const EBIndexSpace *const | a_ebisPtr | |||
) |
Sets the maximum level of coarsening that this { EBISLayout} will have to perform. Creates and holds new { EBISLayout}s at intermediate levels of refinement. Default is one (no coarsening done).
Referenced by EBLevelGrid::setMaxCoarseningRatio().
int EBISLayout::getGhost | ( | ) | const [inline] |
Get the nghost used to create this EBISLayout
References m_nghost.
const BoxLayout& EBISLayout::getGrownLayout | ( | ) | const |
Returns the ghosted layout associated with the ebisl.
const DisjointBoxLayout& EBISLayout::getDisjointLayout | ( | ) | const |
Returns the disjoint layout that was sent in.
Referenced by BaseIVFactory< T >::BaseIVFactory().
VolIndex EBISLayout::coarsen | ( | const VolIndex & | a_vof, | |
const int & | a_ratio, | |||
const DataIndex & | a_datInd | |||
) | const |
Returns the index of the VoF corresponding to coarsening the input VoF by the input ratio. It is an error if the ratio is greater than the maximum coarsening ratio or if the vof does not exist at the input data index.
Vector<VolIndex> EBISLayout::refine | ( | const VolIndex & | a_vof, | |
const int & | a_ratio, | |||
const DataIndex & | a_datInd | |||
) | const |
Returns the indices of the VoFs corresponding to refining the input VoF by the input ratio. It is an error if the ratio is greater than the maximum refinement ratio or if the vof does not exist at the input data index.
Vector<FaceIndex> EBISLayout::refine | ( | const FaceIndex & | a_face, | |
const int & | a_ratio, | |||
const DataIndex & | a_datInd | |||
) | const |
Returns the indices of the Faces corresponding to refining the input Face by the input ratio. It is an error if the ratio is greater than the maximum refinement ratio or if the face does not exist at the input data index.
int EBISLayout::getMaxCoarseningRatio | ( | ) | const |
Referenced by EBLevelGrid::getMaxCoarseningRatio().
int EBISLayout::getMaxRefinementRatio | ( | ) | const |
Referenced by EBLevelGrid::getMaxRefinementRatio().
void EBISLayout::define | ( | const ProblemDomain & | a_domain, | |
const DisjointBoxLayout & | a_grids, | |||
const int & | a_nghost, | |||
const LevelData< EBGraph > & | a_graph, | |||
const LevelData< EBData > & | a_data, | |||
const Real & | a_dx, | |||
bool | a_hasMoments | |||
) |
bool EBISLayout::isDefined | ( | ) | const |
const EBIndexSpace* EBISLayout::getEBIS | ( | ) | const |
void EBISLayout::setEBIS | ( | const EBIndexSpace *const | a_ebisPtr | ) |
int EBISLayout::refCount | ( | ) | const [inline] |
References m_implem, and RefCountedPtr< T, OP >::refCount().
const ProblemDomain& EBISLayout::getDomain | ( | ) | const |
RefCountedPtr<EBISLayoutImplem> EBISLayout::m_implem [private] |
Referenced by refCount().
int EBISLayout::m_nghost [private] |
Referenced by getGhost().