35#ifndef OBSOLETEBOXCOLLECTION_HPP_
36#define OBSOLETEBOXCOLLECTION_HPP_
55 friend class TestObsoleteBoxCollection;
115 void SetupLocalBoxes(
const std::vector<c_vector<int, DIM> >& rNeighbours);
129 c_vector<double, 2*DIM> domainSize,
130 bool isPeriodicInX =
false,
131 bool isPeriodicInY =
false,
132 bool isPeriodicInZ =
false);
bool IsBoxInDomain(c_vector< unsigned, DIM > gridIndices)
std::vector< Box< DIM > > mBoxes
c_vector< double, 2 *DIM > mDomainSize
void SetupLocalBoxes(const std::vector< c_vector< int, DIM > > &rNeighbours)
c_vector< bool, DIM > mIsDomainPeriodic
Box< DIM > & rGetBox(unsigned boxIndex)
c_vector< unsigned, DIM > GetGridIndices(unsigned linearIndex)
void SetupAllLocalBoxes()
void CalculateNodePairs(const std::vector< Node< DIM > * > &rNodes, std::vector< std::pair< Node< DIM > *, Node< DIM > * > > &rNodePairs)
bool IsBoxOwned(unsigned globalIndex)
static const double msFudge
c_vector< unsigned, DIM > mNumBoxesEachDirection
c_vector< bool, DIM > IsIndexPenultimate(c_vector< unsigned, DIM > gridIndices)
std::set< unsigned > & rGetLocalBoxes(unsigned boxIndex)
unsigned GetLinearIndex(c_vector< int, DIM > gridIndices)
void SetupLocalBoxesHalfOnly()
bool IsOwned(Node< DIM > *pNode)
const c_vector< double, 2 *DIM > & rGetDomainSize() const
std::vector< std::set< unsigned > > mLocalBoxes
unsigned CalculateContainingBox(Node< DIM > *pNode)