22 #include "NamespaceHeader.H"
43 BoxLayout bl1; //fill this one with starting layout
46 bl2.transform(mytrans);
74 Entry(
const Box& a_box,
const unsigned int a_index)
267 int numBoxes(
const int procID)
const;
479 void grow(
int a_growth);
491 void grow(
int a_dir,
int a_growth);
643 coarsen(output, input, refinement);
649 refine(output, input, refinement);
722 #include "NamespaceFooter.H"
virtual void define(const Vector< Box > &a_boxes, const Vector< int > &a_procIDs)
void adjCellSide(int a_dir, int a_len, Side::LoHiSide a_sd)
TimedDataIterator timedDataIterator() const
A reference-counting handle class.
Definition: RefCountedPtr.H:66
Box operator[](const LayoutIndex &it) const
Definition: BoxLayout.H:657
bool isSorted() const
Definition: BoxLayout.H:329
#define CH_assert(cond)
Definition: CHArray.H:37
Box refine(const Box &b, const IntVect &refinement_ratio)
A class to facilitate interaction with physical boundary conditions.
Definition: ProblemDomain.H:130
RefCountedPtr< bool > m_closed
Definition: BoxLayout.H:621
bool operator==(const BoxLayout &rhs) const
Definition: BoxLayout.H:666
A not-necessarily-disjoint collective of boxes.
Definition: BoxLayout.H:146
Vector< int > procIDs() const
LayoutIterator layoutIterator() const
Iterator that processes through ALL the boxes in a BoxLayout.
Entry()
Definition: BoxLayout.H:63
void refine_bl(BoxLayout &output, const BoxLayout &input, int refinement)
Definition: BoxLayout.H:647
std::ostream & operator<<(std::ostream &os, const BoxLayout &a_layout)
Box box
Definition: BoxLayout.H:85
void convertNewToOld(const IntVect &a_permutation, const IntVect &a_sign, const IntVect &a_translation)
int refCount() const
Definition: RefCountedPtr.H:276
bool check(const LayoutIndex &index) const
Definition: BoxLayout.H:336
Definition: DataIterator.H:140
unsigned int size() const
Returns the total number of boxes in the BoxLayout.
RefCountedPtr< Vector< LayoutIndex > > m_indicies
Definition: BoxLayout.H:624
An Iterator based on a BoxLayout object.
Definition: LayoutIterator.H:38
friend void coarsen(BoxLayout &output, const BoxLayout &input, int refinement)
RefCountedPtr< int > m_layout
Definition: BoxLayout.H:620
void operator&=(const Box &a_box)
Definition: EBInterface.H:45
void convertOldToNew(const IntVect &a_permutation, const IntVect &a_sign, const IntVect &a_translation)
void coarsen_bl(BoxLayout &output, const BoxLayout &input, int refinement)
Definition: BoxLayout.H:641
IndexTM< T, N > coarsen(const IndexTM< T, N > &a_p, T a_s)
Definition: IndexTMI.H:432
const int * m_layoutIntPtr
Definition: DataIndex.H:100
unsigned int indexI(const LayoutIndex &) const
RefCountedPtr< bool > m_sorted
Definition: BoxLayout.H:622
void setProcID(const LayoutIndex &a_index, unsigned int a_procID)
Definition: BoxLayout.H:710
unsigned int index(const LayoutIndex &index) const
Definition: BoxLayout.H:690
Entry(const Box &a_box)
Definition: BoxLayout.H:68
void transform(BaseTransform &a_transform)
LoHiSide
Definition: LoHiSide.H:27
bool operator<(const BoxLayout &rhs) const
Definition: BoxLayout.H:672
bool operator<(const Entry &rhs) const
Definition: BoxLayout.H:80
long long numCells() const
Return number of cells in all boxes of entire box layout.
bool isClosed() const
Definition: BoxLayout.H:696
Entry(const Box &a_box, const unsigned int a_index)
Definition: BoxLayout.H:74
RefCountedPtr< Vector< Entry > > m_boxes
Definition: BoxLayout.H:619
BoxLayout & operator=(const BoxLayout &a_rhs)
DataIterator dataIterator() const
Parallel iterator.
RefCountedPtr< DataIterator > m_dataIterator
Definition: BoxLayout.H:623
virtual void closeNoSort()
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
bool eq(const BoxLayout &rhs) const
Definition: BoxLayout.H:314
void checkDefine(const Vector< Box > &a_boxes, const Vector< int > &procIDs)
Definition: DataIndex.H:112
bool compatible(const BoxLayout &a_rhs) const
Definition: BoxLayout.H:345
bool sameBoxes(const BoxLayout &a_layout) const
Checks whether this layout has the same boxes in the same order as a_layout.
unsigned int lindex(const DataIndex &index) const
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
unsigned int procID(const LayoutIndex &a_index) const
Definition: BoxLayout.H:702
bool coarsenable(int refRatio) const
Vector< Box > boxArray() const
An index for LayoutIterator.
Definition: DataIndex.H:30
int refCount() const
Definition: BoxLayout.H:306
void mortonOrdering(Vector< Box > &a_boxes)
int m_index
Definition: DataIndex.H:98
virtual void deepCopy(const BoxLayout &a_source)
Box get(const LayoutIndex &it) const
Definition: BoxLayout.H:681
int procID()
local process ID
unsigned int m_procID
Definition: BoxLayout.H:86
void growSide(int idir, int length, Side::LoHiSide a_sd)
int numBoxes(const int procID) const
Returns the number of boxes assigned to a given procID.
void p() const
Definition: BoxLayout.H:596
Definition: BoxLayout.H:61
Definition: TimedDataIterator.H:23