16 #include "NamespaceHeader.H" 81 CodimBox(
const int a_codim,
const Box& a_box,
const int a_nvar);
90 void define(
const int a_codim,
const Box& a_box,
const int a_nvar);
93 void define(
const Box& a_box,
int a_nvar);
113 int bit2seq(
const unsigned a_bOrient)
const;
117 unsigned seq2bit(
const int a_iOrient)
const;
121 static unsigned seq2bit(
const int a_codim,
const int a_iOrient);
127 void getDirections(
const int a_iOrient,
int *
const a_dir)
const;
156 const int a_dir1)
const;
163 const int a_dir2)
const;
172 const int a_dir3)
const;
183 const int a_dir4)
const;
196 const int a_dir5)
const;
605 #include "NamespaceFooter.H" CodimBox * create(const Box &a_box, int a_ncomps, const DataIndex &a_datInd) const
Create a new CodimBox.
Definition: CodimBox.H:593
static unsigned bitOrient[CodimBox::numAI]
Definition: CodimBox.H:255
Number of codimensions.
Definition: CodimBox.H:72
static int preAllocatable()
Report preallocation capability as non-static but symmetric.
Definition: CodimBox.H:537
static int totOrient[numCD]
Definition: CodimBox.H:253
int getDirection(const int a_iOrient, int a_i) const
Get the 'i'th orthogonal direction of an orientation.
static Box genOrientBox(int a_bOrient, Box a_cbox)
#define CH_assert(cond)
Definition: CHArray.H:37
int m_nvar
Number of components in the FArrayBox.
Definition: CodimBox.H:272
one dimensional dynamic array
Definition: Vector.H:52
int nComp() const
Number of components.
Definition: CodimBox.H:324
int getNumOrient() const
Number of different orientations of codimensional objects.
Definition: CodimBox.H:334
static void initialize()
Initialize static lookup tables.
FArrayBox & getFArrayBox(const unsigned i)
Return the FArray box from a bit description of the orientation.
Definition: CodimBox.H:570
int size(const Box &a_R, const Interval &a_comps) const
Returns size of serialized data.
CodimBox()
Default constructor.
const FArrayBox & getSequential(const int a_iOrient) const
Returns FArrayBox from a sequential index.
Definition: CodimBox.H:465
const int SpaceDim
Definition: SPACE.H:39
int m_codim
Definition: CodimBox.H:270
void copy(const Box &a_R, const Interval &a_Cd, const CodimBox &a_src, const Interval &a_Cs)
Copy from another CodimBox.
const Box & box() const
Returns cell-centered box which defines the CodimBox.
Definition: CodimBox.H:436
int getCodim() const
Return the codimension.
Definition: CodimBox.H:314
Structure for passing component ranges in code.
Definition: Interval.H:23
void setVal(const Real a_x)
Set all values in all FAB.
CodimBox & operator=(const CodimBox &)
static int indexFAB[CodimBox::numAI]
Definition: CodimBox.H:259
Definition: CodimBox.H:582
void define(const int a_codim, const Box &a_box, const int a_nvar)
Full define function.
double Real
Definition: REAL.H:33
CodimBoxFactory(int a_codim)
Constructor stores codimension.
Definition: CodimBox.H:587
IndexType ixType() const
centering
Definition: Box.H:1793
Box orientBox(const int a_iOrient) const
Definition: CodimBox.H:486
Box m_box
Definition: CodimBox.H:268
int m_codim
Codimension.
Definition: CodimBox.H:601
unsigned seq2bit(const int a_iOrient) const
Definition: CodimBox.H:368
static int numOrient[numCD]
Definition: CodimBox.H:251
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
An FArrayBox container for storage on the codimensions of a box.
Definition: CodimBox.H:66
Vector< FArrayBox * > m_FArrayBox
The FArrayBoxes for each orientation.
Definition: CodimBox.H:273
Definition: DataIndex.H:112
const FArrayBox & operator()() const
Returns FArrayBox in the given direction (codimension 0)
void getDirections(const int a_iOrient, int *const a_dir) const
Get all the orthogonal directions of an orientation.
Definition: CodimBox.H:400
void linearIn(void *a_buf, const Box &a_R, const Interval &a_comps)
Reads a serialized representation of this CodimBox.
void linearOut(void *a_buf, const Box &a_R, const Interval &a_comps) const
Writes a serialized representation of this CodimBox.
static bool isInitialized()
Check that static arrays are initialized.
Definition: CodimBox.H:550
Cell-Based or Node-Based Indices.
Definition: Box.H:41
Definition: FArrayBox.H:44
Factory object to data members of a BoxLayoutData container.
Definition: BoxLayoutData.H:30
int bit2seq(const unsigned a_bOrient) const
Definition: CodimBox.H:357
Definition: CodimBox.H:73
static void genGetDirections(const int a_codim, int a_bOrient, int *const a_dir)
Get all the orthogonal directions of an orientation (general)