Chombo + EB
3.0
|
#include <MiniIFFAB.H>
Public Member Functions | |
MiniIFFAB () | |
MiniIFFAB (const Box &a_box, const EBGraph &a_ebgraph, const int &a_direction, const int &a_nvarin) | |
~MiniIFFAB () | |
void | define (const Box &a_box, const EBGraph &a_ebgraph, const int &a_direction, const int &a_nvarin) |
long | offset (const FaceIndex &a_vof, const int &a_ivar) const |
for AggStencil More... | |
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 MiniIFFAB< T > &a_src, const Interval &a_srcInterval) |
void | clear () |
MiniIFFAB (const Box &a_region, int a_nVar) | |
invalid but necessary for leveldata to compile More... | |
bool | isDefined () const |
int | nComp () 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 |
const T * | dataPtr (const int &a_comp) 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) |
int | numFaces () const |
const Vector< FaceIndex > & | getFaces () const |
Static Public Member Functions | |
static int | preAllocatable () |
Public Attributes | |
Box | m_box |
EBGraph | m_ebgraph |
Static Public Attributes | |
static bool | s_verbose = false |
Protected Attributes | |
T * | m_data |
Vector< FaceIndex > | m_faces |
int | m_nFaces |
int | m_nComp |
int | m_direction |
bool | m_isDefined |
Private Member Functions | |
void | setDefaultValues () |
void | getFaceSubset (Vector< FaceIndex > &a_subFaces, const Box &a_subBox) const |
void | operator= (const MiniIFFAB< T > &) |
MiniIFFAB (const MiniIFFAB< T > &) | |
MiniIFFAB 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 CH_assert, Box::size(), and SpaceDim.
|
inline |
for AggStencil
|
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, Box::contains(), Interval::end(), FaceIndex::gridIndex(), Side::Hi, MiniIFFAB< T >::isDefined(), Box::isEmpty(), Side::Lo, MiniIFFAB< T >::m_box, MiniIFFAB< T >::m_nComp, and Interval::size().
|
inline |
Remove all data from this MiniIFFAB. You must call { define} again in order to use it.
|
inline |
Tells whether this MiniIFFAB has been defined, either with a constructor or with { define}. It must be initialized in order to access its data.
Referenced by MiniIFFAB< T >::copy().
|
inline |
Return the number of data components of this MiniIFFAB.
|
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, and FaceIndex::direction().
|
inline |
References CH_assert, and FaceIndex::direction().
|
inline |
References CH_assert.
Referenced by MiniIFFAB< Real >::offset().
|
inline |
References CH_assert, and MayDay::Error().
|
inline |
References CH_assert.
|
inlinestatic |
References Interval::begin(), CH_assert, Interval::end(), linearListSize(), linearSize(), pout(), and Vector< T >::size().
|
inline |
References Interval::begin(), CH_assert, Interval::end(), linearListOut(), linearListSize(), linearOut(), linearSize(), and Vector< T >::size().
|
inline |
References Interval::begin(), CH_assert, Interval::end(), linearIn(), linearListIn(), linearListSize(), linearSize(), and Vector< T >::size().
|
inline |
|
inlineprivate |
|
inlineprivate |
References Box::contains(), Side::Hi, Side::Lo, Vector< T >::push_back(), and Vector< T >::resize().
|
static |
Referenced by MiniIFFAB< T >::copy().
|
protected |
Referenced by MiniIFFAB< Real >::getFaces().
|
protected |
Referenced by MiniIFFAB< Real >::numFaces().
|
protected |
Referenced by MiniIFFAB< T >::copy(), and MiniIFFAB< Real >::nComp().
|
protected |
|
protected |
Referenced by MiniIFFAB< Real >::isDefined().