23 #include "NamespaceHeader.H" 69 const T*
dataPtr(
int a_dataType,
int a_ivar)
const 107 const int& a_nvarin);
113 void setVal(
const T& value);
119 void setVal(
int ivar,
const T& value);
125 void setVal(
const T& a_value,
130 void copy(
const Box& a_fromBox,
161 virtual void clear();
207 MayDay::Error(
"invalid constructor called for baseebcellfab");
220 const T*
dataPtr(
const int& a_comp)
const;
232 if (vof == NULL)
MayDay::Error(
"cast failed:BaseIVFAB only takes vofs for indexing");
234 const T& conval = (*this)(*vof, a_ivar);
235 const T* conptr = &conval;
237 long roffset = (long)(conptr - srtptr);
277 #include "NamespaceFooter.H" 279 #ifndef CH_EXPLICIT_TEMPLATES static void setVerbose(bool a_verbose)
Definition: BaseIVFABI.H:28
int m_nVoFs
Definition: BaseIVFAB.H:255
static bool s_verboseDebug
Definition: BaseIVFAB.H:240
virtual ~BaseIVFAB()
Definition: BaseIVFABI.H:63
An irregular domain on an integer lattice.
Definition: IntVectSet.H:44
IntVectSet m_ivs
Definition: BaseIVFAB.H:261
BaseIVFAB()
Definition: BaseIVFABI.H:57
virtual void setDefaultValues()
Definition: BaseIVFABI.H:439
bool m_isDefined
Definition: BaseIVFAB.H:262
void copy(const Box &a_fromBox, const Interval &a_destInterval, const Box &a_toBox, const BaseIVFAB< T > &a_src, const Interval &a_srcInterval)
Definition: BaseIVFABI.H:179
one dimensional dynamic array
Definition: Vector.H:53
void setVal(const T &value)
Definition: BaseIVFABI.H:128
bool isDefined() const
Definition: BaseIVFABI.H:367
int size(const Box &R, const Interval &comps) const
Definition: BaseIVFABI.H:216
const IntVectSet & getIVS() const
Definition: BaseIVFABI.H:51
index for other indicies to inherit
Definition: BaseIndex.H:26
static void setVerboseDebug(bool a_verboseDebug)
Definition: BaseIVFABI.H:37
Geometric description within a box.
Definition: EBGraph.H:427
BaseIVFAB(const Box &a_region, int a_nVar)
invalid but necessary for leveldata to compile
Definition: BaseIVFAB.H:205
const T * dataPtr(int a_dataType, int a_ivar) const
Definition: BaseIVFAB.H:69
BaseFab< T * > m_fab
Definition: BaseIVFAB.H:260
static bool s_verbose
Definition: BaseIVFAB.H:264
Structure for passing component ranges in code.
Definition: Interval.H:23
Vector< T > m_data
Definition: BaseIVFAB.H:252
long offset(const BaseIndex &a_vof, const int &a_ivar) const
for AggStencil
Definition: BaseIVFAB.H:229
virtual void clear()
Definition: BaseIVFABI.H:351
virtual void define(const IntVectSet &a_region, const EBGraph &a_ebgraph, const int &a_nvarin)
Definition: BaseIVFABI.H:82
void linearOut(void *buf, const Box &R, const Interval &comps) const
Definition: BaseIVFABI.H:259
static void Error(const char *const a_msg=m_nullString, int m_exitCode=CH_DEFAULT_ERROR_CODE)
Print out message to cerr and exit with the specified exit code.
virtual T * getIndex(const VolIndex &a_vof, const int &a_comp) const
get index into vector
Definition: BaseIVFABI.H:337
const EBGraph & getEBGraph() const
Definition: BaseIVFABI.H:44
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:469
BaseIVFAB(const BaseIVFAB< T > &a_input)
Definition: BaseIVFAB.H:271
int m_nComp
Definition: BaseIVFAB.H:254
int numDataTypes() const
for AggStencil
Definition: BaseIVFAB.H:54
void linearIn(void *buf, const Box &R, const Interval &comps)
Definition: BaseIVFABI.H:301
EBGraph m_ebgraph
Definition: BaseIVFAB.H:257
T * dataPtr(int a_dataType, int a_ivar)
Definition: BaseIVFAB.H:64
T & operator()(const VolIndex &a_vof, const int &varlocin)
Definition: BaseIVFABI.H:414
Volume of Fluid Index.
Definition: VolIndex.H:31
static int preAllocatable()
Definition: BaseIVFAB.H:141
void operator=(const BaseIVFAB< T > &a_input)
Definition: BaseIVFAB.H:267
int dataType(const BaseIndex &a_baseInd) const
for AggStencil
Definition: BaseIVFAB.H:59
int nComp() const
Definition: BaseIVFABI.H:407
int numVoFs() const
Definition: BaseIVFABI.H:374
Definition: BaseIVFAB.H:32