13 #ifndef _BASEEBCELLFAB_H_ 14 #define _BASEEBCELLFAB_H_ 24 #include "NamespaceHeader.H" 54 if (vofPtr == NULL)
MayDay::Error(
"Trying to index into an EBCellFAB with something that is not a VolIndex");
67 if (vofPtr == NULL)
MayDay::Error(
"Trying to index into an EBCellFAB with something that is not a VolIndex");
71 retval =
m_irrFAB.offset(*vofPtr, a_ivar);
87 else if (a_dataType == 1)
98 const T*
dataPtr(
int a_dataType,
int a_ivar)
const 104 else if (a_dataType == 1)
122 virtual void define(
const EBISBox& a_ebisBox,
const Box& a_region,
int a_nVar);
148 void setVal(
const T& value);
151 void setVal(
int ivar,
const T& value);
154 void setVal(
const T& value,
197 int a_isKnownMultiValued=0)
const;
207 int a_isKnownMultiValued=0);
213 void copy(
const Box& RegionFrom,
243 MayDay::Error(
"invalid constructor called for baseebcellfab");
253 const bool& a_doMulti=
true);
285 MayDay::Error(
"copy constructor for baseebcellfab undefined");
289 #include "NamespaceFooter.H" 291 #ifndef CH_EXPLICIT_TEMPLATES 293 #endif // CH_EXPLICIT_TEMPLATES bool m_hasMultiCells
Definition: BaseEBCellFAB.H:268
void linearIn(void *buf, const Box &R, const Interval &comps)
Definition: BaseEBCellFABI.H:186
EBISBox m_ebisBox
Definition: BaseEBCellFAB.H:264
void fill(T *array, const VolIndex &a_ndin, const Interval &a_comps) const
Definition: BaseEBCellFABI.H:485
void linearOut(void *buf, const Box &R, const Interval &comps) const
Definition: BaseEBCellFABI.H:173
Vector< VolIndex > getMultiCells() const
has to be by value because sometimes the vector does not exist.
Definition: BaseEBCellFABI.H:199
T * dataPtr(int a_dataType, int a_ivar)
for AggStencil
Definition: BaseEBCellFAB.H:81
int numDataTypes() const
for AggStencil
Definition: BaseEBCellFAB.H:45
bool isMultiValued(const IntVect &a_iv) const
Definition: EBISBox.H:405
const T * dataPtr(int a_dataType, int a_ivar) const
for AggStencil
Definition: BaseEBCellFAB.H:98
const IntVect & gridIndex() const
Definition: VolIndex.H:125
void operator=(const BaseEBCellFAB< T > &ebcin)
Definition: BaseEBCellFAB.H:279
const BaseIVFAB< T > & getMultiValuedFAB() const
Definition: BaseEBCellFABI.H:352
const BaseFab< T > & getSingleValuedFAB() const
Definition: BaseEBCellFABI.H:373
void copy(const Box &RegionFrom, const Interval &destInt, const Box &RegionTo, const BaseEBCellFAB< T > &source, const Interval &srcInt)
Definition: BaseEBCellFABI.H:123
index for other indicies to inherit
Definition: BaseIndex.H:26
const Box & getRegion() const
Definition: BaseEBCellFABI.H:334
const EBISBox & getEBISBox() const
Definition: BaseEBCellFABI.H:560
long offset(const BaseIndex &a_baseInd, const int a_ivar) const
for AggStencil
Definition: BaseEBCellFAB.H:64
const Box & box() const
Definition: BaseEBCellFABI.H:343
virtual void setCoveredCellVal(const T &a_val, const int &a_comp, const bool &a_doMulti=true)
Definition: BaseEBCellFABI.H:23
Structure for passing component ranges in code.
Definition: Interval.H:23
const T & operator()(const VolIndex &a_ndin, int a_nVarLoc, int a_isKnownMultiValued=0) const
Definition: BaseEBCellFABI.H:400
virtual void define(const EBISBox &a_ebisBox, const Box &a_region, int a_nVar)
Definition: BaseEBCellFABI.H:232
void setVal(const T &value)
Definition: BaseEBCellFABI.H:283
Array defined at the VolIndexs of an Box in an EBIS.
Definition: BaseEBCellFAB.H:40
MiniIVFAB< T > m_irrFAB
data at multi-valued cells
Definition: BaseEBCellFAB.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.
static int preAllocatable()
Definition: BaseEBCellFAB.H:226
BaseEBCellFAB(const Box &a_region, int a_nVar)
invalid but necessary for leveldata to compile
Definition: BaseEBCellFAB.H:241
int size(const Box &R, const Interval &comps) const
Definition: BaseEBCellFABI.H:162
virtual ~BaseEBCellFAB()
Definition: BaseEBCellFABI.H:262
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:469
bool m_isDefined
has full define function been called?
Definition: BaseEBCellFAB.H:271
void setDefaultValues()
Definition: BaseEBCellFABI.H:551
void clear()
Definition: BaseEBCellFABI.H:271
BaseEBCellFAB()
Definition: BaseEBCellFABI.H:213
Volume of Fluid Index.
Definition: VolIndex.H:31
bool isDefined() const
Definition: BaseEBCellFABI.H:317
int nComp() const
Definition: BaseEBCellFABI.H:325
BaseEBCellFAB(const BaseEBCellFAB< T > &ebcin)
Definition: BaseEBCellFAB.H:283
void assign(const T *array, const VolIndex &a_ndin, const Interval &a_comps)
Definition: BaseEBCellFABI.H:516
Definition: BaseIVFAB.H:32
int dataType(const BaseIndex &a_baseInd) const
for AggStencil
Definition: BaseEBCellFAB.H:51
BaseFab< T > m_regFAB
data at single-valued cells
Definition: BaseEBCellFAB.H:262
Definition: MiniIVFAB.H:37
Box m_region
Definition: BaseEBCellFAB.H:266