Chombo + EB
3.0
|
#include <IrregFAB.H>
Classes | |
class | additionOp |
operator for += More... | |
class | arithOp |
some stuff to do arithmetic More... | |
class | divisionOp |
operator for /= More... | |
class | multiplicationOp |
operator for *= More... | |
class | subtractionOp |
operator for -= More... | |
Public Member Functions | |
IrregFAB () | |
IrregFAB (const Box &a_region, const EBGraph &a_ebgraph, const int &a_nvarin) | |
virtual | ~IrregFAB () |
virtual void | define (const Box &a_region, const EBGraph &a_ebgraph, const int &a_nvarin) |
IrregFAB (const Box &a_region, int a_nVar) | |
invalid but necessary for leveldata to compile More... | |
IrregFAB & | applyOp (const Real &a_srcVal, int a_srccomp, int a_destcomp, int a_numcomp, IrregFAB::arithOp &a_op) |
apply any operator pointwise for two fabs. More... | |
IrregFAB & | applyOp (const IrregFAB &a_srcVal, const Box &a_region, int a_srccomp, int a_destcomp, int a_numcomp, IrregFAB::arithOp &a_op) |
apply any operator pointwise with input real number More... | |
IrregFAB & | operator+= (const IrregFAB &a_ebfab) |
IrregFAB & | operator+= (const Real &a_ebfab) |
IrregFAB & | operator-= (const IrregFAB &a_ebfab) |
IrregFAB & | operator-= (const Real &a_ebfab) |
IrregFAB & | operator*= (const IrregFAB &a_IrregFAB) |
IrregFAB & | operator*= (const Real &a_ebfab) |
IrregFAB & | operator/= (const IrregFAB &a_ebfab) |
IrregFAB & | operator/= (const Real &a_ebfab) |
IrregFAB & | plus (const IrregFAB &a_src, int a_srccomp, int a_destcomp, int a_numcomp) |
more flexible versions of stuff More... | |
IrregFAB & | plus (const Real &a_src, int a_srccomp, int a_destcomp, int a_numcomp) |
IrregFAB & | plus (const IrregFAB &a_src, const Box &a_region, int a_srccomp, int a_destcomp, int a_numcomp) |
IrregFAB & | minus (const IrregFAB &a_src, int a_srccomp, int a_destcomp, int a_numcomp) |
IrregFAB & | minus (const Real &a_src, int a_srccomp, int a_destcomp, int a_numcomp) |
IrregFAB & | mult (const Real &a_src, int a_srccomp, int a_destcomp, int a_numcomp) |
IrregFAB & | divide (const Real &a_src, int a_srccomp, int a_destcomp, int a_numcomp) |
IrregFAB & | minus (const IrregFAB &a_src, const Box &a_region, int a_srccomp, int a_destcomp, int a_numcomp) |
IrregFAB & | mult (const IrregFAB &a_src, int a_srccomp, int a_destcomp, int a_numcomp) |
IrregFAB & | mult (const IrregFAB &a_src, const Box &a_region, int a_srccomp, int a_destcomp, int a_numcomp) |
IrregFAB & | divide (const IrregFAB &a_src, int a_srccomp, int a_destcomp, int a_numcomp) |
IrregFAB & | divide (const IrregFAB &a_src, const Box &a_region, int a_srccomp, int a_destcomp, int a_numcomp) |
Public Member Functions inherited from BaseIVFAB< Real > | |
BaseIVFAB () | |
BaseIVFAB (const IntVectSet &a_region, const EBGraph &a_ebgraph, const int &a_nvarin) | |
BaseIVFAB (const Interval &a_comps, BaseIVFAB< Real > &a_original) | |
BaseIVFAB (const Box &a_region, int a_nVar) | |
invalid but necessary for leveldata to compile More... | |
int | numDataTypes () const |
for AggStencil More... | |
int | dataType (const BaseIndex &a_baseInd) const |
for AggStencil More... | |
Real * | dataPtr (int a_dataType, int a_ivar) |
const Real * | dataPtr (int a_dataType, int a_ivar) const |
Real * | dataPtr (const int &a_comp) |
const Real * | dataPtr (const int &a_comp) const |
virtual | ~BaseIVFAB () |
virtual void | define (const IntVectSet &a_region, const EBGraph &a_ebgraph, const int &a_nvarin) |
void | setVal (const Real &value) |
void | setVal (int ivar, const Real &value) |
void | setVal (const Real &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< Real > &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 |
Real & | operator() (const VolIndex &a_vof, const int &varlocin) |
const Real & | operator() (const VolIndex &a_vof, const int &varlocin) const |
virtual Real * | 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... | |
Protected Attributes | |
Box | m_region |
Protected Attributes inherited from BaseIVFAB< Real > | |
Vector< Real > | m_data |
int | m_nComp |
int | m_nVoFs |
EBGraph | m_ebgraph |
BaseFab< Real *> | m_fab |
IntVectSet | m_ivs |
bool | m_isDefined |
Private Member Functions | |
void | operator= (const IrregFAB &a_input) |
IrregFAB (const IrregFAB &a_input) | |
Additional Inherited Members | |
Static Public Member Functions inherited from BaseIVFAB< Real > | |
static int | preAllocatable () |
static void | setVerbose (bool a_verbose) |
static void | setVerboseDebug (bool a_verboseDebug) |
Static Public Attributes inherited from BaseIVFAB< Real > | |
static bool | s_verboseDebug |
Protected Member Functions inherited from BaseIVFAB< Real > | |
virtual void | setDefaultValues () |
Static Protected Attributes inherited from BaseIVFAB< Real > | |
static bool | s_verbose |
This is a data holder which holds data over the irregular cells in a box.
IrregFAB::IrregFAB | ( | ) |
Default constructor. Constructs an uninitialized IVFAB. You must subsequently call { define} before using this IVFAB.
Defining constructor. Specifies the irregular domain as the irregular cells within the region 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.
|
virtual |
|
inline |
invalid but necessary for leveldata to compile
References MayDay::Error().
|
inlineprivate |
References MayDay::Error().
|
virtual |
Full define function. Specifies the irregular domain as the irregular cells within the regionand 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.
IrregFAB& IrregFAB::applyOp | ( | const Real & | a_srcVal, |
int | a_srccomp, | ||
int | a_destcomp, | ||
int | a_numcomp, | ||
IrregFAB::arithOp & | a_op | ||
) |
apply any operator pointwise for two fabs.
Referenced by IrregFAB::divisionOp::func().
IrregFAB& IrregFAB::applyOp | ( | const IrregFAB & | a_srcVal, |
const Box & | a_region, | ||
int | a_srccomp, | ||
int | a_destcomp, | ||
int | a_numcomp, | ||
IrregFAB::arithOp & | a_op | ||
) |
apply any operator pointwise with input real number
done over intersection of src, dst Both fabs need the same ncomp
Referenced by IrregFAB::divisionOp::func().
done over intersection of src, dst Both fabs need the same ncomp
done over intersection of src, dst Both fabs need the same ncomp
Referenced by IrregFAB::divisionOp::func().
done over intersection of src, dst Both fabs need the same ncomp
Referenced by IrregFAB::divisionOp::func().
done over intersection of src, dst Both fabs need the same ncomp
Referenced by IrregFAB::divisionOp::func().
more flexible versions of stuff
Referenced by IrregFAB::divisionOp::func().
IrregFAB& IrregFAB::plus | ( | const IrregFAB & | a_src, |
const Box & | a_region, | ||
int | a_srccomp, | ||
int | a_destcomp, | ||
int | a_numcomp | ||
) |
Referenced by IrregFAB::divisionOp::func().
Referenced by IrregFAB::divisionOp::func().
Referenced by IrregFAB::divisionOp::func().
IrregFAB& IrregFAB::minus | ( | const IrregFAB & | a_src, |
const Box & | a_region, | ||
int | a_srccomp, | ||
int | a_destcomp, | ||
int | a_numcomp | ||
) |
IrregFAB& IrregFAB::mult | ( | const IrregFAB & | a_src, |
const Box & | a_region, | ||
int | a_srccomp, | ||
int | a_destcomp, | ||
int | a_numcomp | ||
) |
IrregFAB& IrregFAB::divide | ( | const IrregFAB & | a_src, |
const Box & | a_region, | ||
int | a_srccomp, | ||
int | a_destcomp, | ||
int | a_numcomp | ||
) |
|
inlineprivate |
References MayDay::Error().
|
protected |