16 #include "NamespaceHeader.H" 80 CodimBox(
const int a_codim,
const Box& a_box,
const int a_nvar);
89 void define(
const int a_codim,
const Box& a_box,
const int a_nvar);
92 void define(
const Box& a_box,
int a_nvar);
112 int bit2seq(
const unsigned a_bOrient)
const;
116 unsigned seq2bit(
const int a_iOrient)
const;
120 static unsigned seq2bit(
const int a_codim,
const int a_iOrient);
126 void getDirections(
const int a_iOrient,
int *
const a_dir)
const;
155 const int a_dir1)
const;
162 const int a_dir2)
const;
171 const int a_dir3)
const;
182 const int a_dir4)
const;
195 const int a_dir5)
const;
282 S&
getS(
const unsigned i);
283 const S&
getS(
const unsigned i)
const;
452 return *
m_S[a_iOrient];
458 return *
m_S[a_iOrient];
579 #include "NamespaceFooter.H" int getNumOrient() const
Number of different orientations of codimensional objects.
Definition: CodimBox.H:329
~CodimBox()
Destructor.
Definition: CodimBoxImplem.H:82
unsigned seq2bit(const int a_iOrient) const
Definition: CodimBox.H:360
#define CH_assert(cond)
Definition: CHArray.H:37
const S & operator()() const
Returns S in the given direction (codimension 0)
Definition: CodimBoxImplem.H:303
one dimensional dynamic array
Definition: Vector.H:53
Number of codimensions.
Definition: CodimBox.H:71
static int totOrient[numCD]
Definition: CodimBox.H:252
static unsigned bitOrient[CodimBox::numAI]
Definition: CodimBox.H:254
static void initialize()
Initialize static lookup tables.
Definition: CodimBoxImplem.H:101
int getCodim() const
Return the codimension.
Definition: CodimBox.H:311
int bit2seq(const unsigned a_bOrient) const
Definition: CodimBox.H:350
int size(const Box &a_R, const Interval &a_comps) const
Returns size of serialized data.
Definition: CodimBoxImplem.H:648
Vector< S * > m_S
The Ses for each orientation.
Definition: CodimBox.H:272
CodimBoxFactory(int a_codim)
Constructor stores codimension.
Definition: CodimBox.H:561
const int SpaceDim
Definition: SPACE.H:38
static int numOrient[numCD]
Definition: CodimBox.H:250
CodimBox & operator=(const CodimBox &)
Structure for passing component ranges in code.
Definition: Interval.H:23
Definition: CodimBox.H:556
void linearOut(void *a_buf, const Box &a_R, const Interval &a_comps) const
Writes a serialized representation of this CodimBox.
Definition: CodimBoxImplem.H:672
double Real
Definition: REAL.H:33
IndexType ixType() const
centering
Definition: Box.H:1798
int m_nvar
Number of components in the S.
Definition: CodimBox.H:271
int nComp() const
Number of components.
Definition: CodimBox.H:320
static Box genOrientBox(int a_bOrient, Box a_cbox)
Definition: CodimBoxImplem.H:760
void copy(const Box &a_R, const Interval &a_Cd, const CodimBox &a_src, const Interval &a_Cs)
Copy from another CodimBox.
Definition: CodimBoxImplem.H:559
static void genGetDirections(const int a_codim, int a_bOrient, int *const a_dir)
Get all the orthogonal directions of an orientation (general)
Definition: CodimBoxImplem.H:731
int m_codim
Definition: CodimBox.H:269
void linearIn(void *a_buf, const Box &a_R, const Interval &a_comps)
Reads a serialized representation of this CodimBox.
Definition: CodimBoxImplem.H:695
Definition: CodimBox.H:72
CodimBox< S > * create(const Box &a_box, int a_ncomps, const DataIndex &a_datInd) const
Create a new CodimBox.
Definition: CodimBox.H:567
int m_codim
Codimension.
Definition: CodimBox.H:575
const Box & box() const
Returns cell-centered box which defines the CodimBox.
Definition: CodimBox.H:423
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:469
void clear()
Deallocate.
Definition: CodimBoxImplem.H:193
An FArrayBox container for storage on the codimensions of a box.
Definition: CodimBox.H:65
S & getS(const unsigned i)
Return the FArray box from a bit description of the orientation.
Definition: CodimBox.H:545
Definition: DataIndex.H:114
int getDirection(const int a_iOrient, int a_i) const
Get the 'i'th orthogonal direction of an orientation.
Definition: CodimBoxImplem.H:222
Cell-Based or Node-Based Indices.
Definition: Box.H:45
void define(const int a_codim, const Box &a_box, const int a_nvar)
Full define function.
Definition: CodimBoxImplem.H:159
Factory object to data members of a BoxLayoutData container.
Definition: BoxLayoutData.H:30
static int preAllocatable()
Report preallocation capability as non-static but symmetric.
Definition: CodimBox.H:516
void getDirections(const int a_iOrient, int *const a_dir) const
Get all the orthogonal directions of an orientation.
Definition: CodimBox.H:390
void setVal(const Real a_x)
Set all values in all FAB.
Definition: CodimBoxImplem.H:529
const S & getSequential(const int a_iOrient) const
Returns S from a sequential index.
Definition: CodimBox.H:449
static int indexFAB[CodimBox::numAI]
Definition: CodimBox.H:258
Box m_box
Definition: CodimBox.H:267
CodimBox()
Default constructor.
Definition: CodimBoxImplem.H:57
Box orientBox(const int a_iOrient) const
Definition: CodimBox.H:468
static bool isInitialized()
Check that static arrays are initialized.
Definition: CodimBox.H:528