Chombo + EB
3.0
|
#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) |
bool | isDefined () const |
const EBIndexSpace * | getEBIS () const |
void | setEBIS (const EBIndexSpace *const a_ebisPtr) |
Private Attributes | |
RefCountedPtr< EBISLayoutImplem > | m_implem |
int | m_nghost |
EBISLayout represents the geometric information on a union of rectangles. This is another ref-counted pointer object so copying it is cheap but has the ref-counted pointer semantic.
EBISLayout::EBISLayout | ( | ) |
Referenced by getGhost().
EBISLayout::~EBISLayout | ( | ) |
Referenced by getGhost().
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 EBISLayoutImplem::getDisjointLayout(), and 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 EBISLayoutImplem::getDisjointLayout(), and EBLevelGrid::setMaxCoarseningRatio().
|
inline |
Get the nghost used to create this EBISLayout
References coarsen(), define(), EBISLayout(), getDisjointLayout(), getEBIS(), getGrownLayout(), getMaxCoarseningRatio(), getMaxRefinementRatio(), isDefined(), m_nghost, refine(), setEBIS(), and ~EBISLayout().
const BoxLayout& EBISLayout::getGrownLayout | ( | ) | const |
Returns the ghosted layout associated with the ebisl.
Referenced by getGhost().
const DisjointBoxLayout& EBISLayout::getDisjointLayout | ( | ) | const |
Returns the disjoint layout that was sent in.
Referenced by BaseIVFactory< T >::BaseIVFactory(), and getGhost().
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.
Referenced by EBISLayoutImplem::getDisjointLayout(), and getGhost().
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.
Referenced by EBISLayoutImplem::getDisjointLayout(), and getGhost().
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 EBISLayoutImplem::getDisjointLayout(), getGhost(), and EBLevelGrid::getMaxCoarseningRatio().
int EBISLayout::getMaxRefinementRatio | ( | ) | const |
Referenced by EBISLayoutImplem::getDisjointLayout(), getGhost(), and 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 | ||
) |
bool EBISLayout::isDefined | ( | ) | const |
Referenced by getGhost().
const EBIndexSpace* EBISLayout::getEBIS | ( | ) | const |
Referenced by getGhost().
void EBISLayout::setEBIS | ( | const EBIndexSpace *const | a_ebisPtr | ) |
Referenced by getGhost().
|
private |
|
private |
Referenced by getGhost().