24 #include "NamespaceHeader.H" 117 void setVal(
const T& a_val);
119 void setVal(
int a_comp,
const T& a_val);
121 void setVal(
const T& a_val,
const Box& a_box,
int a_startcomp,
int a_ncomp);
134 if (vof == NULL)
MayDay::Error(
"cast failed:MiniIVFAB only takes vofs for indexing");
136 for(;i<
m_vofs->size(); i++)
137 if(*vof == (*
m_vofs)[i])
break;
144 {
return *(
getIndex(a_vof, a_comp));}
152 template <
typename F>
153 void forall(
const MiniIVFAB& a_src,
const Box& a_box,
int a_srccomp,
int a_destcomp,
int a_numcomp,
bool sameRegBox,
const F& func);
169 #include "NamespaceFooter.H" 171 #ifndef CH_EXPLICIT_TEMPLATES MiniIVFAB()
Definition: MiniIVFABI.H:26
virtual void define(const IntVectSet &a_region, const EBGraph &a_ebgraph, const int &a_nvarin)
Definition: MiniIVFABI.H:56
virtual ~MiniIVFAB()
Definition: MiniIVFABI.H:32
An irregular domain on an integer lattice.
Definition: IntVectSet.H:44
int size(const Box &R, const Interval &comps) const
Definition: MiniIVFABI.H:128
bool hasVoFs() const
Definition: MiniIVFAB.H:58
int numVoFs() const
Definition: MiniIVFABI.H:243
void forall(const MiniIVFAB &a_src, const Box &a_box, int a_srccomp, int a_destcomp, int a_numcomp, bool sameRegBox, const F &func)
Definition: MiniIVFABI.H:267
index for other indicies to inherit
Definition: BaseIndex.H:26
void copy(const Box &a_fromBox, const Interval &a_dstInterval, const Box &a_toBox, const MiniIVFAB< T > &a_src, const Interval &a_srcInterval)
Definition: MiniIVFABI.H:98
Geometric description within a box.
Definition: EBGraph.H:427
virtual T * getIndex(const VolIndex &a_vof, const int &a_comp) const
get index into vector
Definition: MiniIVFABI.H:201
void setVal(const T &a_val)
Definition: MiniIVFABI.H:218
Structure for passing component ranges in code.
Definition: Interval.H:23
int m_nComp
Definition: MiniIVFAB.H:164
void linearIn(void *buf, const Box &R, const Interval &comps)
Definition: MiniIVFABI.H:179
void linearOut(void *buf, const Box &R, const Interval &comps) const
Definition: MiniIVFABI.H:148
shared_ptr< Vector< VolIndex > > m_vofs
Definition: MiniIVFAB.H:162
T * dataPtr(int a_ivar)
Definition: MiniIVFAB.H:105
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.
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
T * m_data
Definition: MiniIVFAB.H:165
int nComp() const
Definition: MiniIVFAB.H:157
Volume of Fluid Index.
Definition: VolIndex.H:31
long offset(const BaseIndex &a_vof, const int &a_ivar) const
for AggStencil
Definition: MiniIVFAB.H:131
Vector< VolIndex > getVoFs() const
Definition: MiniIVFABI.H:252
T & operator()(const VolIndex &a_vof, int a_comp)
Definition: MiniIVFAB.H:143
shared_ptr< Vector< T > > m_Memory
Definition: MiniIVFAB.H:163
const T * dataPtr(int a_ivar) const
Definition: MiniIVFAB.H:111
Definition: MiniIVFAB.H:37