13 #ifndef _BASEEBFACEFAB_H_ 14 #define _BASEEBFACEFAB_H_ 24 #include "NamespaceHeader.H" 57 if (vofPtr == NULL)
MayDay::Error(
"Trying to index into an EBCellFAB with something that is not a FaceIndex");
60 for (
int iface = 0; iface < irrfaces.
size(); iface++)
62 if (irrfaces[iface] == *vofPtr)
75 if (vofPtr == NULL)
MayDay::Error(
"Trying to index into an EBCellFAB with something that is not a FaceIndex");
78 for (
int iface = 0; iface < irrfaces.
size(); iface++)
80 if (irrfaces[iface] == *vofPtr)
89 retval =
m_irrFAB.offset(*vofPtr, a_ivar);
105 else if (a_dataType == 1)
116 const T*
dataPtr(
int a_dataType,
int a_ivar)
const 122 else if (a_dataType == 1)
144 int a_iDir,
int a_nVar);
154 int a_iDir,
int a_nVar);
163 void setVal(
const T& value);
166 void setVal(
int ivar,
const T& value);
219 void copy(
const Box& RegionFrom,
236 MayDay::Error(
"invalid constructor called for BaseEBFaceFAB");
246 const bool& a_doMulti=
true);
280 MayDay::Error(
"BaseEBFaceFAB<T> copy constructor not defined");
284 #include "NamespaceFooter.H" 286 #ifndef CH_EXPLICIT_TEMPLATES 288 #endif // CH_EXPLICIT_TEMPLATES int m_nComp
number of data values at each face in BaseEBFaceFAB
Definition: BaseEBFaceFAB.H:255
void clear()
Definition: BaseEBFaceFABI.H:225
const Box & getRegion() const
Definition: BaseEBFaceFABI.H:324
void setVal(const T &value)
Definition: BaseEBFaceFABI.H:236
BaseEBFaceFAB(const Box &a_region, int a_nVar)
Invalid but necessary for LevelData<T> to compile.
Definition: BaseEBFaceFAB.H:234
int nComp() const
Definition: BaseEBFaceFABI.H:264
void setCoveredFaceVal(const T &a_val, const int &a_comp, const bool &a_doMulti=true)
Definition: BaseEBFaceFABI.H:23
Definition: FaceIndex.H:28
Box m_region
the cell-centered region over which the BaseEBFaceFAB lives
Definition: BaseEBFaceFAB.H:264
const IntVect & gridIndex(const Side::LoHiSide &a_sd) const
index for other indicies to inherit
Definition: BaseIndex.H:26
Array defined at the Faces of an Box in an EBISBox.
Definition: BaseEBFaceFAB.H:43
Definition: LoHiSide.H:31
T & operator()(const FaceIndex &a_facein, int a_nVarLoc)
Definition: BaseEBFaceFABI.H:343
EBISBox m_ebisBox
Definition: BaseEBFaceFAB.H:269
void linearOut(void *buf, const Box &R, const Interval &comps) const
Definition: BaseEBFaceFABI.H:76
static bool preAllocatable()
Definition: BaseEBFaceFAB.H:209
virtual ~BaseEBFaceFAB()
Definition: BaseEBFaceFABI.H:216
BaseEBFaceFAB(const BaseEBFaceFAB< T > &ebcin)
Definition: BaseEBFaceFAB.H:278
BaseFab< T > m_regFAB
data at faces between two single-valued cells
Definition: BaseEBFaceFAB.H:252
Structure for passing component ranges in code.
Definition: Interval.H:23
MiniIFFAB< T > m_irrFAB
data at faces which abut multi-valued cells
Definition: BaseEBFaceFAB.H:250
void copy(const Box &RegionFrom, const Interval &destInt, const Box &RegionTo, const BaseEBFaceFAB< T > &source, const Interval &srcInt)
Definition: BaseEBFaceFABI.H:127
const T * dataPtr(int a_dataType, int a_ivar) const
Definition: BaseEBFaceFAB.H:116
const Box & getCellRegion() const
Definition: BaseEBFaceFABI.H:333
const EBISBox & getEBISBox() const
Definition: BaseEBFaceFABI.H:100
void linearIn(void *buf, const Box &R, const Interval &comps)
Definition: BaseEBFaceFABI.H:88
size_t size() const
Definition: Vector.H:177
int size(const Box &R, const Interval &comps) const
Definition: BaseEBFaceFABI.H:64
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.
const BaseFab< T > & getSingleValuedFAB() const
Definition: BaseEBFaceFABI.H:294
void operator=(const BaseEBFaceFAB< T > &ebcin)
Definition: BaseEBFaceFAB.H:274
long offset(const BaseIndex &a_baseInd, const int a_ivar) const
for AggStencil
Definition: BaseEBFaceFAB.H:72
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
Definition: MiniIFFAB.H:34
T * dataPtr(int a_dataType, int a_ivar)
for AggStencil
Definition: BaseEBFaceFAB.H:99
BaseEBFaceFAB()
Definition: BaseEBFaceFABI.H:161
bool m_isDefined
has the full define function been called for the BaseEBFaceFAB?
Definition: BaseEBFaceFAB.H:267
int numDataTypes() const
for AggStencil
Definition: BaseEBFaceFAB.H:48
Box m_regionFace
the face-centered region over which the BaseEBFaceFAB lives
Definition: BaseEBFaceFAB.H:261
int direction() const
Definition: BaseEBFaceFABI.H:314
virtual void define(const EBISBox &a_ebisBox, const Box &a_region, int a_iDir, int a_nVar)
Definition: BaseEBFaceFABI.H:181
void setDefaultValues()
Definition: BaseEBFaceFABI.H:411
int m_iDir
Definition: BaseEBFaceFAB.H:258
const MiniIFFAB< T > & getMultiValuedFAB() const
Definition: BaseEBFaceFABI.H:274
int dataType(const BaseIndex &a_baseInd) const
for AggStencil
Definition: BaseEBFaceFAB.H:54
bool isDefined() const
Definition: BaseEBFaceFABI.H:255