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);
296 MayDay::Error(
"BaseEBFaceFAB<T> copy constructor not defined");
300 #include "NamespaceFooter.H" 302 #ifndef CH_EXPLICIT_TEMPLATES 304 #endif // CH_EXPLICIT_TEMPLATES int m_nComp
number of data values at each face in BaseEBFaceFAB
Definition: BaseEBFaceFAB.H:271
void clear()
Definition: BaseEBFaceFABI.H:246
const Box & getRegion() const
Definition: BaseEBFaceFABI.H:345
void setVal(const T &value)
Definition: BaseEBFaceFABI.H:257
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:285
void setCoveredFaceVal(const T &a_val, const int &a_comp, const bool &a_doMulti=true)
Definition: BaseEBFaceFABI.H:37
Definition: FaceIndex.H:28
Box m_region
the cell-centered region over which the BaseEBFaceFAB lives
Definition: BaseEBFaceFAB.H:280
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:364
EBISBox m_ebisBox
Definition: BaseEBFaceFAB.H:285
void linearOut(void *buf, const Box &R, const Interval &comps) const
Definition: BaseEBFaceFABI.H:90
static bool preAllocatable()
Definition: BaseEBFaceFAB.H:209
virtual ~BaseEBFaceFAB()
Definition: BaseEBFaceFABI.H:237
BaseEBFaceFAB(const BaseEBFaceFAB< T > &ebcin)
Definition: BaseEBFaceFAB.H:294
BaseFab< T > m_regFAB
data at faces between two single-valued cells
Definition: BaseEBFaceFAB.H:268
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:266
void copy(const Box &RegionFrom, const Interval &destInt, const Box &RegionTo, const BaseEBFaceFAB< T > &source, const Interval &srcInt)
Definition: BaseEBFaceFABI.H:141
const T * dataPtr(int a_dataType, int a_ivar) const
Definition: BaseEBFaceFAB.H:116
const Box & getCellRegion() const
Definition: BaseEBFaceFABI.H:354
const EBISBox & getEBISBox() const
Definition: BaseEBFaceFABI.H:114
void linearIn(void *buf, const Box &R, const Interval &comps)
Definition: BaseEBFaceFABI.H:102
size_t size() const
Definition: Vector.H:192
int size(const Box &R, const Interval &comps) const
Definition: BaseEBFaceFABI.H:78
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:315
void operator=(const BaseEBFaceFAB< T > &ebcin)
Definition: BaseEBFaceFAB.H:290
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:180
bool m_isDefined
has the full define function been called for the BaseEBFaceFAB?
Definition: BaseEBFaceFAB.H:283
int numDataTypes() const
for AggStencil
Definition: BaseEBFaceFAB.H:48
Box m_regionFace
the face-centered region over which the BaseEBFaceFAB lives
Definition: BaseEBFaceFAB.H:277
int direction() const
Definition: BaseEBFaceFABI.H:335
virtual void define(const EBISBox &a_ebisBox, const Box &a_region, int a_iDir, int a_nVar)
Definition: BaseEBFaceFABI.H:200
void setDefaultValues()
Definition: BaseEBFaceFABI.H:432
int m_iDir
Definition: BaseEBFaceFAB.H:274
const MiniIFFAB< T > & getMultiValuedFAB() const
Definition: BaseEBFaceFABI.H:295
int dataType(const BaseIndex &a_baseInd) const
for AggStencil
Definition: BaseEBFaceFAB.H:54
bool isDefined() const
Definition: BaseEBFaceFABI.H:276