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);
292 MayDay::Error(
"copy constructor for baseebcellfab undefined");
296 #include "NamespaceFooter.H" 298 #ifndef CH_EXPLICIT_TEMPLATES 300 #endif // CH_EXPLICIT_TEMPLATES bool m_hasMultiCells
is m_multiCells not empty?
Definition: BaseEBCellFAB.H:275
void linearIn(void *buf, const Box &R, const Interval &comps)
Definition: BaseEBCellFABI.H:172
EBISBox m_ebisBox
Definition: BaseEBCellFAB.H:264
An irregular domain on an integer lattice.
Definition: IntVectSet.H:44
void fill(T *array, const VolIndex &a_ndin, const Interval &a_comps) const
Definition: BaseEBCellFABI.H:466
void linearOut(void *buf, const Box &R, const Interval &comps) const
Definition: BaseEBCellFABI.H:160
T * dataPtr(int a_dataType, int a_ivar)
for AggStencil
Definition: BaseEBCellFAB.H:81
int numDataTypes() const
for AggStencil
Definition: BaseEBCellFAB.H:45
const T * dataPtr(int a_dataType, int a_ivar) const
for AggStencil
Definition: BaseEBCellFAB.H:98
const IntVect & gridIndex() const
Definition: VolIndex.H:119
void operator=(const BaseEBCellFAB< T > &ebcin)
Definition: BaseEBCellFAB.H:286
const BaseIVFAB< T > & getMultiValuedFAB() const
Definition: BaseEBCellFABI.H:333
const BaseFab< T > & getSingleValuedFAB() const
Definition: BaseEBCellFABI.H:354
void copy(const Box &RegionFrom, const Interval &destInt, const Box &RegionTo, const BaseEBCellFAB< T > &source, const Interval &srcInt)
Definition: BaseEBCellFABI.H:110
index for other indicies to inherit
Definition: BaseIndex.H:26
const Box & getRegion() const
Definition: BaseEBCellFABI.H:315
const EBISBox & getEBISBox() const
Definition: BaseEBCellFABI.H:539
long offset(const BaseIndex &a_baseInd, const int a_ivar) const
for AggStencil
Definition: BaseEBCellFAB.H:64
const Box & box() const
Definition: BaseEBCellFABI.H:324
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:381
virtual void define(const EBISBox &a_ebisBox, const Box &a_region, int a_nVar)
Definition: BaseEBCellFABI.H:212
const IntVectSet & getMultiCells() const
Definition: BaseEBCellFABI.H:184
void setVal(const T &value)
Definition: BaseEBCellFABI.H:264
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:150
virtual ~BaseEBCellFAB()
Definition: BaseEBCellFABI.H:243
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
bool m_isDefined
has full define function been called?
Definition: BaseEBCellFAB.H:278
void setDefaultValues()
Definition: BaseEBCellFABI.H:530
void clear()
Definition: BaseEBCellFABI.H:252
BaseEBCellFAB()
Definition: BaseEBCellFABI.H:193
Volume of Fluid Index.
Definition: VolIndex.H:31
bool isDefined() const
Definition: BaseEBCellFABI.H:298
IntVectSet m_multiCells
whether each given cell is multi-valued
Definition: BaseEBCellFAB.H:272
int nComp() const
Definition: BaseEBCellFABI.H:306
BaseEBCellFAB(const BaseEBCellFAB< T > &ebcin)
Definition: BaseEBCellFAB.H:290
bool contains(const IntVect &iv) const
Returns true if this IntVectSet contains iv.
int m_nComp
Definition: BaseEBCellFAB.H:266
void assign(const T *array, const VolIndex &a_ndin, const Interval &a_comps)
Definition: BaseEBCellFABI.H:496
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:36
Box m_region
region over which the BaseEBCellFAB exists
Definition: BaseEBCellFAB.H:269