13 #ifndef _BASEEBFACEFAB_H_ 14 #define _BASEEBFACEFAB_H_ 24 #include "NamespaceHeader.H" 59 if (vofPtr == NULL)
MayDay::Error(
"Trying to index into an EBCellFAB with something that is not a FaceIndex");
62 for (
int iface = 0; iface < irrfaces.
size(); iface++)
64 if (irrfaces[iface] == *vofPtr)
77 if (vofPtr == NULL)
MayDay::Error(
"Trying to index into an EBCellFAB with something that is not a FaceIndex");
80 for (
int iface = 0; iface < irrfaces.
size(); iface++)
82 if (irrfaces[iface] == *vofPtr)
91 retval =
m_irrFAB.offset(*vofPtr, a_ivar);
107 else if (a_dataType == 1)
118 const T*
dataPtr(
int a_dataType,
int a_ivar)
const 124 else if (a_dataType == 1)
146 int a_iDir,
int a_nVar);
156 int a_iDir,
int a_nVar);
165 void setVal(
const T& value);
168 void setVal(
int ivar,
const T& value);
221 void copy(
const Box& RegionFrom,
238 MayDay::Error(
"invalid constructor called for BaseEBFaceFAB");
248 const bool& a_doMulti=
true);
298 MayDay::Error(
"BaseEBFaceFAB<T> copy constructor not defined");
302 #include "NamespaceFooter.H" 304 #ifndef CH_EXPLICIT_TEMPLATES 306 #endif // CH_EXPLICIT_TEMPLATES int m_nComp
number of data values at each face in BaseEBFaceFAB
Definition: BaseEBFaceFAB.H:273
void clear()
Definition: BaseEBFaceFABI.H:254
const Box & getRegion() const
Definition: BaseEBFaceFABI.H:353
void setVal(const T &value)
Definition: BaseEBFaceFABI.H:265
BaseEBFaceFAB(const Box &a_region, int a_nVar)
Invalid but necessary for LevelData<T> to compile.
Definition: BaseEBFaceFAB.H:236
int nComp() const
Definition: BaseEBFaceFABI.H:293
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:282
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:372
EBISBox m_ebisBox
Definition: BaseEBFaceFAB.H:287
bool m_verbose
Definition: BaseEBFaceFAB.H:47
void linearOut(void *buf, const Box &R, const Interval &comps) const
Definition: BaseEBFaceFABI.H:98
static bool preAllocatable()
Definition: BaseEBFaceFAB.H:211
virtual ~BaseEBFaceFAB()
Definition: BaseEBFaceFABI.H:245
BaseEBFaceFAB(const BaseEBFaceFAB< T > &ebcin)
Definition: BaseEBFaceFAB.H:296
BaseFab< T > m_regFAB
data at faces between two single-valued cells
Definition: BaseEBFaceFAB.H:270
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:268
void copy(const Box &RegionFrom, const Interval &destInt, const Box &RegionTo, const BaseEBFaceFAB< T > &source, const Interval &srcInt)
Definition: BaseEBFaceFABI.H:149
const T * dataPtr(int a_dataType, int a_ivar) const
Definition: BaseEBFaceFAB.H:118
const Box & getCellRegion() const
Definition: BaseEBFaceFABI.H:362
const EBISBox & getEBISBox() const
Definition: BaseEBFaceFABI.H:122
void linearIn(void *buf, const Box &R, const Interval &comps)
Definition: BaseEBFaceFABI.H:110
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:323
void operator=(const BaseEBFaceFAB< T > &ebcin)
Definition: BaseEBFaceFAB.H:292
long offset(const BaseIndex &a_baseInd, const int a_ivar) const
for AggStencil
Definition: BaseEBFaceFAB.H:74
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:469
Definition: MiniIFFAB.H:34
T * dataPtr(int a_dataType, int a_ivar)
for AggStencil
Definition: BaseEBFaceFAB.H:101
BaseEBFaceFAB()
Definition: BaseEBFaceFABI.H:188
bool m_isDefined
has the full define function been called for the BaseEBFaceFAB?
Definition: BaseEBFaceFAB.H:285
int numDataTypes() const
for AggStencil
Definition: BaseEBFaceFAB.H:50
Box m_regionFace
the face-centered region over which the BaseEBFaceFAB lives
Definition: BaseEBFaceFAB.H:279
int direction() const
Definition: BaseEBFaceFABI.H:343
virtual void define(const EBISBox &a_ebisBox, const Box &a_region, int a_iDir, int a_nVar)
Definition: BaseEBFaceFABI.H:208
void setDefaultValues()
Definition: BaseEBFaceFABI.H:440
int m_iDir
Definition: BaseEBFaceFAB.H:276
const MiniIFFAB< T > & getMultiValuedFAB() const
Definition: BaseEBFaceFABI.H:303
int dataType(const BaseIndex &a_baseInd) const
for AggStencil
Definition: BaseEBFaceFAB.H:56
bool isDefined() const
Definition: BaseEBFaceFABI.H:284