Chombo + EB
3.0
|
Array defined at the VolIndexs of an Box in an EBIS. More...
#include <BaseEBCellFAB.H>
Public Member Functions | |
int | numDataTypes () const |
for AggStencil More... | |
int | dataType (const BaseIndex &a_baseInd) const |
for AggStencil More... | |
long | offset (const BaseIndex &a_baseInd, const int a_ivar) const |
for AggStencil More... | |
T * | dataPtr (int a_dataType, int a_ivar) |
for AggStencil More... | |
const T * | dataPtr (int a_dataType, int a_ivar) const |
for AggStencil More... | |
BaseEBCellFAB () | |
BaseEBCellFAB (const EBISBox &a_ebisBox, const Box &a_region, int a_nVar) | |
virtual void | define (const EBISBox &a_ebisBox, const Box &a_region, int a_nVar) |
BaseEBCellFAB (const Interval &a_comps, BaseEBCellFAB< T > &a_original) | |
aliasing copy-ish constructor. Used when the 'alias' function is invoked on LevelData More... | |
virtual | ~BaseEBCellFAB () |
void | clear () |
void | setVal (const T &value) |
void | setVal (int ivar, const T &value) |
void | setVal (const T &value, const Box &a_box, int a_nstart, int a_numcomp) |
bool | isDefined () const |
int | nComp () const |
const Box & | getRegion () const |
const Box & | box () const |
const IntVectSet & | getMultiCells () const |
const BaseIVFAB< T > & | getMultiValuedFAB () const |
BaseIVFAB< T > & | getMultiValuedFAB () |
const BaseFab< T > & | getSingleValuedFAB () const |
BaseFab< T > & | getSingleValuedFAB () |
const T & | operator() (const VolIndex &a_ndin, int a_nVarLoc, int a_isKnownMultiValued=0) const |
T & | operator() (const VolIndex &a_ndin, int a_nVarLoc, int a_isKnownMultiValued=0) |
void | fill (T *array, const VolIndex &a_ndin, const Interval &a_comps) const |
void | assign (const T *array, const VolIndex &a_ndin, const Interval &a_comps) |
void | copy (const Box &RegionFrom, const Interval &destInt, const Box &RegionTo, const BaseEBCellFAB< T > &source, const Interval &srcInt) |
BaseEBCellFAB< T > & | copy (const BaseEBCellFAB< T > &source) |
int | size (const Box &R, const Interval &comps) const |
void | linearOut (void *buf, const Box &R, const Interval &comps) const |
void | linearIn (void *buf, const Box &R, const Interval &comps) |
BaseEBCellFAB (const Box &a_region, int a_nVar) | |
invalid but necessary for leveldata to compile More... | |
const EBISBox & | getEBISBox () const |
void | setCoveredCellVal (const T &a_val, const int &a_comp, const bool &a_doMulti=true) |
Static Public Member Functions | |
static int | preAllocatable () |
Protected Member Functions | |
void | setDefaultValues () |
Protected Attributes | |
MiniIVFAB< T > | m_irrFAB |
data at multi-valued cells More... | |
BaseFab< T > | m_regFAB |
data at single-valued cells More... | |
EBISBox | m_ebisBox |
int | m_nComp |
Box | m_region |
region over which the BaseEBCellFAB exists More... | |
IntVectSet | m_multiCells |
whether each given cell is multi-valued More... | |
bool | m_hasMultiCells |
is m_multiCells not empty? More... | |
bool | m_isDefined |
has full define function been called? More... | |
Private Member Functions | |
void | operator= (const BaseEBCellFAB< T > &ebcin) |
BaseEBCellFAB (const BaseEBCellFAB< T > &ebcin) | |
Array defined at the VolIndexs of an Box in an EBIS.
An BaseEBCellFAB is a templated holder for cell-centered data over the intersection of a box and an EbisBox. At every uncovered VolIndex in this intersection, the BaseEBCellFAB contains a specified number of data values. At singly valued cells, the data is stored internally in a BaseFab. At multiply-valued cells, the data is stored internally in an BaseIVFAB. BaseEBCellFAB provides indexing by VolIndex. This class does not provide a copy constructor or assignment operator for all the usual reasons.
BaseEBCellFAB< T >::BaseEBCellFAB | ( | ) |
Referenced by BaseEBCellFAB< Real >::dataPtr().
BaseEBCellFAB< T >::BaseEBCellFAB | ( | const EBISBox & | a_ebisBox, |
const Box & | a_region, | ||
int | a_nVar | ||
) |
BaseEBCellFAB< T >::BaseEBCellFAB | ( | const Interval & | a_comps, |
BaseEBCellFAB< T > & | a_original | ||
) |
aliasing copy-ish constructor. Used when the 'alias' function is invoked on LevelData
Constructs an 'aliased' BaseEBCellFab of the requested interval of the argument BaseEBCellFab. This BaseEBCellFab does not allocate any memory, but sets its data pointer into the memory pointed to by the argument BaseEBCellFab. It is the users responsiblity to ensure this aliased BaseEBCellFab is not used after the original BaseEBCellFab has deleted its data ptr (resize, define(..) called, or destruction, etc.).
This aliased BaseEBCellFab will also generate side effects (modifying the values of data in one will modify the other's data).
This aliased BaseFab will have a_comps.size() components, starting at zero.
|
virtual |
Referenced by BaseEBCellFAB< Real >::dataPtr(), and BaseEBCellFAB< Real >::define().
|
inline |
invalid but necessary for leveldata to compile
|
inlineprivate |
|
inline |
for AggStencil
|
inline |
for AggStencil
|
inline |
for AggStencil
|
inline |
for AggStencil
|
inline |
for AggStencil
|
virtual |
Reimplemented in EBCellFAB.
Referenced by BaseEBCellFAB< Real >::dataPtr().
void BaseEBCellFAB< T >::clear | ( | ) |
Referenced by BaseEBCellFAB< Real >::dataPtr().
void BaseEBCellFAB< T >::setVal | ( | const T & | value | ) |
Referenced by BaseEBCellFAB< Real >::dataPtr().
void BaseEBCellFAB< T >::setVal | ( | int | ivar, |
const T & | value | ||
) |
void BaseEBCellFAB< T >::setVal | ( | const T & | value, |
const Box & | a_box, | ||
int | a_nstart, | ||
int | a_numcomp | ||
) |
bool BaseEBCellFAB< T >::isDefined | ( | ) | const |
Referenced by BaseEBCellFAB< Real >::copy(), and BaseEBCellFAB< Real >::dataPtr().
int BaseEBCellFAB< T >::nComp | ( | ) | const |
Referenced by BaseEBCellFAB< Real >::dataPtr().
const Box & BaseEBCellFAB< T >::getRegion | ( | ) | const |
Referenced by BaseEBCellFAB< Real >::dataPtr().
const Box & BaseEBCellFAB< T >::box | ( | ) | const |
Referenced by BaseEBCellFAB< Real >::dataPtr().
const IntVectSet & BaseEBCellFAB< T >::getMultiCells | ( | ) | const |
Referenced by BaseEBCellFAB< Real >::dataPtr().
const BaseIVFAB< T > & BaseEBCellFAB< T >::getMultiValuedFAB | ( | ) | const |
Referenced by BaseEBCellFAB< Real >::dataPtr().
BaseIVFAB< T > & BaseEBCellFAB< T >::getMultiValuedFAB | ( | ) |
const BaseFab< T > & BaseEBCellFAB< T >::getSingleValuedFAB | ( | ) | const |
Referenced by BaseEBCellFAB< Real >::dataPtr().
BaseFab< T > & BaseEBCellFAB< T >::getSingleValuedFAB | ( | ) |
const T & BaseEBCellFAB< T >::operator() | ( | const VolIndex & | a_ndin, |
int | a_nVarLoc, | ||
int | a_isKnownMultiValued = 0 |
||
) | const |
Arg a_isKnownMultiValued should be set to: -1 if arg a_ndin is known to be in a single-valued cell; +1 if arg a_ndin is known to be in a multi-valued cell; 0 if you're not sure (in which case the expensive IntVectSet::contains() function gets called.
Note: BVS says third arg is a wart that makes this operator look less like a logical array access.
Referenced by BaseEBCellFAB< Real >::dataPtr().
T & BaseEBCellFAB< T >::operator() | ( | const VolIndex & | a_ndin, |
int | a_nVarLoc, | ||
int | a_isKnownMultiValued = 0 |
||
) |
Arg a_isKnownMultiValued should be set to: -1 if arg a_ndin is known to be in a single-valued cell; +1 if arg a_ndin is known to be in a multi-valued cell; 0 if you're not sure (in which case the expensive IntVectSet::contains() function gets called.
void BaseEBCellFAB< T >::fill | ( | T * | array, |
const VolIndex & | a_ndin, | ||
const Interval & | a_comps | ||
) | const |
Referenced by BaseEBCellFAB< Real >::dataPtr().
void BaseEBCellFAB< T >::assign | ( | const T * | array, |
const VolIndex & | a_ndin, | ||
const Interval & | a_comps | ||
) |
Referenced by BaseEBCellFAB< Real >::dataPtr().
void BaseEBCellFAB< T >::copy | ( | const Box & | RegionFrom, |
const Interval & | destInt, | ||
const Box & | RegionTo, | ||
const BaseEBCellFAB< T > & | source, | ||
const Interval & | srcInt | ||
) |
Referenced by BaseEBCellFAB< Real >::dataPtr().
BaseEBCellFAB< T > & BaseEBCellFAB< T >::copy | ( | const BaseEBCellFAB< T > & | source | ) |
|
inlinestatic |
This stuff required by LevelData in parallel:
int BaseEBCellFAB< T >::size | ( | const Box & | R, |
const Interval & | comps | ||
) | const |
Referenced by BaseEBCellFAB< Real >::preAllocatable().
void BaseEBCellFAB< T >::linearOut | ( | void * | buf, |
const Box & | R, | ||
const Interval & | comps | ||
) | const |
Referenced by BaseEBCellFAB< Real >::preAllocatable().
void BaseEBCellFAB< T >::linearIn | ( | void * | buf, |
const Box & | R, | ||
const Interval & | comps | ||
) |
Referenced by BaseEBCellFAB< Real >::preAllocatable().
const EBISBox & BaseEBCellFAB< T >::getEBISBox | ( | ) | const |
Referenced by BaseEBCellFAB< Real >::BaseEBCellFAB().
void BaseEBCellFAB< T >::setCoveredCellVal | ( | const T & | a_val, |
const int & | a_comp, | ||
const bool & | a_doMulti = true |
||
) |
Referenced by BaseEBCellFAB< Real >::BaseEBCellFAB().
|
protected |
|
inlineprivate |
|
protected |
data at multi-valued cells
Referenced by BaseEBCellFAB< Real >::copy(), BaseEBCellFAB< Real >::dataPtr(), and BaseEBCellFAB< Real >::offset().
|
protected |
data at single-valued cells
Referenced by BaseEBCellFAB< Real >::copy(), BaseEBCellFAB< Real >::dataPtr(), and BaseEBCellFAB< Real >::offset().
|
protected |
|
protected |
Referenced by BaseEBCellFAB< Real >::copy().
|
protected |
region over which the BaseEBCellFAB exists
Referenced by BaseEBCellFAB< Real >::copy().
|
protected |
whether each given cell is multi-valued
Referenced by BaseEBCellFAB< Real >::dataType(), and BaseEBCellFAB< Real >::offset().
|
protected |
is m_multiCells not empty?
|
protected |
has full define function been called?