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)
262 bool sameBoxes(
const BoxLayout& a_layout)
const;
267 int numBoxes(
const int procID)
const;
271 long long numCells()
const;
281 unsigned int index(
const LayoutIndex& index)
const;
283 unsigned int lindex(
const DataIndex& index)
const;
308 return m_boxes.refCount();
404 bool coarsenable(
int refRatio)
const;
443 void convertOldToNew(
const IntVect& a_permutation,
451 void convertNewToOld(
const IntVect& a_permutation,
479 void grow(
int a_growth);
491 void grow(
int a_dir,
int a_growth);
505 void operator&= (
const Box& a_box);
539 setProcID(
const LayoutIndex& a_index,
unsigned int a_procID);
564 dataIterator()
const;
568 timedDataIterator()
const;
576 layoutIterator()
const;
611 inline unsigned int indexI(
const LayoutIndex&)
const;
615 void buildDataIndex();
643 coarsen(output, input, refinement);
649 refine(output, input, refinement);
660 return m_boxes->operator[](a_layoutIndex.
m_index).
box;
684 return m_boxes->operator[](a_layoutIndex.
m_index).
box;
705 return m_boxes->operator[](a_layoutIndex.
m_index).m_procID;
713 m_boxes->operator[](a_layoutIndex.
m_index).m_procID = a_procID;
722 #include "NamespaceFooter.H" bool operator<(const BoxLayout &rhs) const
Definition: BoxLayout.H:672
bool compatible(const BoxLayout &a_rhs) const
Definition: BoxLayout.H:345
A reference-counting handle class.
Definition: RefCountedPtr.H:66
#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
A not-necessarily-disjoint collective of boxes.
Definition: BoxLayout.H:146
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
bool operator==(const BoxLayout &rhs) const
Definition: BoxLayout.H:666
int refCount() const
Definition: BoxLayout.H:306
Definition: DataIterator.H:140
void p() const
Definition: BoxLayout.H:596
RefCountedPtr< Vector< LayoutIndex > > m_indicies
Definition: BoxLayout.H:624
An Iterator based on a BoxLayout object.
Definition: LayoutIterator.H:38
RefCountedPtr< int > m_layout
Definition: BoxLayout.H:620
Definition: EBInterface.H:45
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
Box operator[](const LayoutIndex &it) const
Definition: BoxLayout.H:657
unsigned int index(const LayoutIndex &index) const
Definition: BoxLayout.H:690
const int * m_layoutIntPtr
Definition: DataIndex.H:100
RefCountedPtr< bool > m_sorted
Definition: BoxLayout.H:622
bool check(const LayoutIndex &index) const
Definition: BoxLayout.H:336
void setProcID(const LayoutIndex &a_index, unsigned int a_procID)
Definition: BoxLayout.H:710
Box surroundingNodes(const Box &b, int dir)
Definition: Box.H:2166
bool operator<(const FaceIndex &f1, const FaceIndex &f2)
Definition: FaceIndex.H:204
Box grow(const Box &b, int i)
Definition: Box.H:2282
Entry(const Box &a_box)
Definition: BoxLayout.H:68
Box enclosedCells(const Box &b, int dir)
Definition: Box.H:2183
LoHiSide
Definition: LoHiSide.H:27
Box get(const LayoutIndex &it) const
Definition: BoxLayout.H:681
bool isSorted() const
Definition: BoxLayout.H:329
Entry(const Box &a_box, const unsigned int a_index)
Definition: BoxLayout.H:74
RefCountedPtr< Vector< Entry > > m_boxes
Definition: BoxLayout.H:619
RefCountedPtr< DataIterator > m_dataIterator
Definition: BoxLayout.H:623
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
Definition: DataIndex.H:112
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
An index for LayoutIterator.
Definition: DataIndex.H:30
bool isClosed() const
Definition: BoxLayout.H:696
void mortonOrdering(Vector< Box > &a_boxes)
int m_index
Definition: DataIndex.H:98
int procID()
local process ID
unsigned int m_procID
Definition: BoxLayout.H:86
Definition: BoxLayout.H:61
Definition: TimedDataIterator.H:23
unsigned int procID(const LayoutIndex &a_index) const
Definition: BoxLayout.H:702
bool eq(const BoxLayout &rhs) const
Definition: BoxLayout.H:314