Chombo + EB
3.2
|
#include <BaseIFFAB.H>
Public Member Functions | |
BaseIFFAB () | |
BaseIFFAB (const IntVectSet &a_region, const EBGraph &a_ebgraph, const int &a_direction, const int &a_nvarin) | |
~BaseIFFAB () | |
void | define (const IntVectSet &a_region, const EBGraph &a_ebgraph, const int &a_direction, const int &a_nvarin) |
void | setVal (const T &value) |
void | setVal (int ivar, const T &value) |
void | copy (const Box &a_intBox, const Interval &a_destInterval, const Box &a_toBox, const BaseIFFAB< T > &a_src, const Interval &a_srcInterval) |
void | clear () |
BaseIFFAB (const Box &a_region, int a_nVar) | |
invalid but necessary for leveldata to compile More... | |
bool | isDefined () const |
int | numFaces () const |
int | nComp () const |
int | direction () const |
const IntVectSet & | getIVS () const |
T & | operator() (const FaceIndex &a_face, const int &varlocin) |
const T & | operator() (const FaceIndex &a_face, const int &varlocin) const |
T * | dataPtr (const int &a_comp) |
T * | getIndex (const FaceIndex &a_face, const int &a_comp) const |
long | offset (const FaceIndex &a_vof, const int &a_ivar) const |
for AggStencil More... | |
const T * | dataPtr (const int &a_comp) const |
const EBGraph & | getEBGraph () const |
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) |
Static Public Member Functions | |
static int | preAllocatable () |
static void | setVerbose (bool a_verbose) |
static void | setSurroundingNodeSemantic (bool a_useSurr) |
Static Public Attributes | |
static bool | s_verbose = false |
Protected Member Functions | |
bool | useThisFace (const Box &a_toBox, const FaceIndex &a_face) const |
void | getBoxAndIVS (Box &a_intBox, IntVectSet &a_ivsIntersect, const Box &a_toBox) const |
int | getLocalVecIndex (const FaceIndex &a_face) const |
Protected Attributes | |
Vector< T > | m_data |
int | m_truesize |
int | m_nComp |
int | m_nFaces |
int | m_direction |
BaseFab< T * > | m_fab |
IntVectSet | m_ivs |
EBGraph | m_ebgraph |
bool | m_isDefined |
Static Protected Attributes | |
static Arena * | s_Arena = NULL |
static bool | s_doSurroundingNodeSemantic = false |
Private Member Functions | |
void | setDefaultValues () |
void | operator= (const BaseIFFAB< T > &) |
BaseIFFAB (const BaseIFFAB< T > &) | |
BaseIFFAB is a templated data holder defined over the Faces of an irregular domain.
Default constructor. Constructs an uninitialized IFFAB. You must subsequently call { define} before using this IFFAB.
|
inline |
Defining constructor. Specifies the irregular domain and the number of data components per face. The irregular domain must lie completely within the EBGraph. The contents are uninitialized. Calls full define function.
invalid but necessary for leveldata to compile
|
inline |
Full define function. Specifies the irregular domain and the number of data components per face. The irregular domain must lie completely within the EBGraph. The contents are uninitialized. If it has previously been defined, the old definition data is overwritten and lost.
References BASISV(), Box::bigEnd(), CH_assert, ProblemDomain::domainBox(), EBGraph::getDomain(), IntVectSet::isEmpty(), ProblemDomain::isPeriodic(), IntVectSet::minBox(), IVSIterator::ok(), BaseFab< T >::resize(), BaseFab< T >::setVal(), Box::smallEnd(), SpaceDim, and surroundingNodes().
|
inline |
Set a value at every data location.
References CH_assert.
|
inline |
Set a value at every data location.
References CH_assert.
|
inline |
define over surrounding nodes of invectset (ivs is cell-centered).
References Interval::begin(), CH_assert, Interval::end(), BaseIFFAB< T >::isDefined(), IntVectSet::isEmpty(), BaseIFFAB< T >::m_ivs, BaseIFFAB< T >::m_nComp, FaceIterator::ok(), FaceIterator::reset(), Interval::size(), and FaceStop::SurroundingWithBoundary.
|
inline |
Remove all data from this BaseIFFAB. You must call { define} again in order to use it.
|
inline |
Tells whether this BaseIFFAB has been defined, either with a constructor or with { define}. It must be initialized in order to access its data.
Referenced by BaseIFFAB< T >::copy().
|
inline |
Return the number of face in this BaseIFFAB.
|
inline |
Return the number of data components of this BaseIFFAB.
|
inline |
Return the direction of the faces of this BaseIFFAB.
|
inline |
Return the irregular domain of the BaseIFFAB.
|
inline |
Indexing operator. Return a reference to the contents of this IFFAB, at the specified face and data component. The first component is zero, the last is {nvar-1}. The returned object is a modifiable lvalue.
References CH_assert, FaceIndex::direction(), FaceIndex::gridIndex(), Side::Hi, and Side::Lo.
|
inline |
References CH_assert, FaceIndex::direction(), FaceIndex::gridIndex(), Side::Hi, and Side::Lo.
|
inline |
References FaceIndex::gridIndex(), and Side::Hi.
|
inline |
for AggStencil
|
inline |
References CH_assert.
|
inlinestatic |
|
inlinestatic |
|
inlineprivate |
|
protected |
References Box::contains(), FaceIndex::gridIndex(), Side::Hi, Side::Lo, and pout().
|
protected |
References Box::grow().
|
inlineprotected |
References FaceIndex::cellIndex(), CH_assert, FaceIndex::gridIndex(), Side::Hi, FaceIndex::isBoundary(), Side::Lo, and Max().
|
static |
|
static |
|
staticprotected |
Referenced by BaseIFFAB< FaceStencil >::offset().
|
protected |
|
protected |
Referenced by BaseIFFAB< T >::copy().
|
protected |
|
protected |
|
protected |
Referenced by BaseIFFAB< T >::copy().
|
protected |