Chombo + EB + MF
3.2
|
#include <BaseIVFAB.H>
Public Member Functions | |
BaseIVFAB () | |
BaseIVFAB (const IntVectSet &a_region, const EBGraph &a_ebgraph, const int &a_nvarin) | |
int | numDataTypes () const |
for AggStencil More... | |
int | dataType (const BaseIndex &a_baseInd) const |
for AggStencil More... | |
T * | dataPtr (int a_dataType, int a_ivar) |
const T * | dataPtr (int a_dataType, int a_ivar) const |
BaseIVFAB (const Interval &a_comps, BaseIVFAB< T > &a_original) | |
virtual | ~BaseIVFAB () |
virtual void | define (const IntVectSet &a_region, const EBGraph &a_ebgraph, const int &a_nvarin) |
void | setVal (const T &value) |
void | setVal (int ivar, const T &value) |
void | setVal (const T &a_value, const Box &a_box, int a_nstart, int a_numcomp) |
void | copy (const Box &a_fromBox, const Interval &a_destInterval, const Box &a_toBox, const BaseIVFAB< T > &a_src, const Interval &a_srcInterval) |
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) |
virtual void | clear () |
bool | isDefined () const |
int | numVoFs () const |
int | nComp () const |
const IntVectSet & | getIVS () const |
const EBGraph & | getEBGraph () const |
T & | operator() (const VolIndex &a_vof, const int &varlocin) |
const T & | operator() (const VolIndex &a_vof, const int &varlocin) const |
BaseIVFAB (const Box &a_region, int a_nVar) | |
invalid but necessary for leveldata to compile More... | |
T * | dataPtr (const int &a_comp) |
const T * | dataPtr (const int &a_comp) const |
virtual T * | getIndex (const VolIndex &a_vof, const int &a_comp) const |
get index into vector More... | |
long | offset (const BaseIndex &a_vof, const int &a_ivar) const |
for AggStencil More... | |
Static Public Member Functions | |
static int | preAllocatable () |
static void | setVerbose (bool a_verbose) |
static void | setVerboseDebug (bool a_verboseDebug) |
Static Public Attributes | |
static bool | s_verboseDebug = false |
Protected Member Functions | |
virtual void | setDefaultValues () |
Protected Attributes | |
Vector< T > | m_data |
int | m_nComp |
int | m_nVoFs |
EBGraph | m_ebgraph |
BaseFab< T * > | m_fab |
IntVectSet | m_ivs |
bool | m_isDefined |
Static Protected Attributes | |
static bool | s_verbose = false |
Private Member Functions | |
void | operator= (const BaseIVFAB< T > &a_input) |
BaseIVFAB (const BaseIVFAB< T > &a_input) | |
BaseIVFAB is a templated data holder defined at the VoFs of an irregular domain.
Default constructor. Constructs an uninitialized IVFAB. You must subsequently call { define} before using this IVFAB.
|
inline |
Defining constructor. Specifies the irregular domain and the number of data components per VoF. The irregular domain must lie completely within the EBGraph. The contents are uninitialized. Calls full define function.
BaseIVFAB< T >::BaseIVFAB | ( | const Interval & | a_comps, |
BaseIVFAB< T > & | a_original | ||
) |
Constructs an 'aliased' BaseIVFAB of the requested interval of the argument BaseIVFAB. This BaseIVFAB does not allocate any memory, but sets its data pointer into the memory pointed to by the argument BaseIVFAB. It is the users responsiblity to ensure this aliased BaseIVFAB is not used after the original BaseIVFAB has deleted its data ptr (resize, define(..) called, or destruction, etc.).
This aliased BaseIVFAB will also generate side effects (modifying the values of data in one will modify the other's data).
This aliased BaseIVFAB will have a_comps.size() components, starting at zero.
invalid but necessary for leveldata to compile
|
inline |
for AggStencil
for AggStencil
|
inline |
Referenced by BaseIVFAB< Real >::dataPtr(), and BaseIVFAB< Real >::offset().
|
inline |
|
inlinevirtual |
Full define function. Specifies the irregular domain and the number of data components per VoF. 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 CH_assert, IntVectSet::isEmpty(), IntVectSet::minBox(), IVSIterator::ok(), and IVSIterator::reset().
|
inline |
Set a value at every data location.
|
inline |
Set a value at every data location.
References CH_assert.
|
inline |
Set a value at every data location within a_box
References CH_assert, and VoFIterator::ok().
|
inlinestatic |
This stuff required by LevelData in parallel:
References Interval::begin(), CH_assert, Interval::end(), VoFIterator::getVector(), linearListSize(), linearSize(), pout(), and Vector< T >::size().
|
inline |
References Interval::begin(), CH_assert, CH_TIME, Interval::end(), linearIn(), linearListIn(), linearListSize(), linearSize(), pout(), and Vector< T >::size().
|
inlinevirtual |
Remove all data from this BaseIVFAB. You must call { define} again in order to use it.
|
inline |
Tells whether this BaseIVFAB has been defined, either with a constructor or with { define}. It must be initialized in order to access its data.
Referenced by BaseIVFAB< T >::copy().
|
inline |
Return the number of VoFs in this BaseIVFAB.
|
inline |
Return the number of data components of this BaseIVFAB.
|
inline |
Return the irregular domain of the BaseIVFAB.
|
inline |
Indexing operator. Return a reference to the contents of this IVFAB, at the specified VoF and data component. The first component is zero, the last is {nvar-1}. The returned object is a modifiable lvalue.
References CH_assert.
|
inline |
References CH_assert.
|
static |
|
static |
|
inline |
References CH_assert.
|
inlinevirtual |
get index into vector
needs to be public so that bulk stencils can be constructed
References VolIndex::cellIndex(), CH_assert, and VolIndex::gridIndex().
|
inline |
for AggStencil
|
inlineprotectedvirtual |
|
static |
|
protected |
Referenced by BaseIVFAB< T >::copy().
|
protected |
|
protected |
Referenced by BaseIVFAB< T >::copy().
|
protected |
|
staticprotected |