1 #include "../include/octree_block.h"
8 for (
int i=0; i<dim; i++)
11 this->nodesId.resize(0);
12 this->numChildren = 0;
13 this->nearNeigh.resize(1);
14 this->intList.resize(1);
15 this->nonIntList.resize(1);
22 this->parentId = parent;
26 this->nodesId.resize(0);
27 this->numChildren = 0;
28 this->nearNeigh.resize(1);
29 this->intList.resize(1);
30 this->nonIntList.resize(1);
38 this->level = other.
level;
39 this->pMin = other.
pMin;
40 this->delta = other.
delta;
41 for (
unsigned int i=0; i < other.
nodesId.size(); i++)
42 this->nodesId.push_back(other.
nodesId[i]);
45 for (
unsigned int i=0; i < this->numChildren; i++)
56 this->nearNeigh.clear();
57 this->intList.clear();
58 this->nonIntList.clear();
59 this->nodesId.clear();
60 this->quadPointsId.clear();
68 this->level = other->
level;
69 this->pMin = other->
pMin;
70 this->delta = other->
delta;
71 for (
unsigned int i=0; i < other->
nodesId.size(); i++)
72 this->nodesId.push_back(other->
nodesId[i]);
75 for (
unsigned int i=0; i < this->numChildren; i++)
86 this->nodesId.push_back(nodeId);
93 this->quadPointsId[elemPointer].push_back(quadPointId);
100 return this->nodesId;
107 this->nodesId.clear();
115 return this->quadPointsId;
122 this->quadPointsId.clear();
129 return this->nodesId.size();
136 return this->numChildren;
143 return this->parentId;
150 this->childrenId[numChildren] = childId;
151 this->numChildren +=1;
158 return this->childrenId[idInList];
179 (this->nearNeigh.at(sublevel)).insert(nnBlockId);
186 return (this->nearNeigh.at(sublevel)).size();
193 return this->nearNeigh.size();
200 return this->nearNeigh.at(sublevel);
207 (this->intList.at(sublevel)).insert(intListBlockId);
214 return (this->intList.at(sublevel)).size();
221 return this->intList.size();
228 return this->intList.at(sublevel);
235 return this->intList;
242 (this->nonIntList.at(sublevel)).insert(intListBlockId);
249 return (this->nonIntList.at(sublevel)).size();
256 return this->nonIntList.size();
263 return this->nonIntList.at(sublevel);
270 this->nearNeigh.resize(sublevels);
277 this->intList.resize(sublevels);
284 this->nonIntList.resize(sublevels);
291 return this->nearNeigh.size();
298 return this->intList.size();
305 return this->nonIntList.size();
void AddQuadPoint(cell_it elemPointer, unsigned int quadPointId)
unsigned int GetNearNeighSize() const
unsigned int GetParentId() const
std::map< cell_it, std::vector< unsigned int > > GetBlockQuadPointsList() const
std::vector< std::set< unsigned int > > intList
unsigned int NumNonIntList(unsigned int sublevel) const
std::vector< std::set< unsigned int > > nonIntList
unsigned int NumNonIntListLevels() const
unsigned int NumNearNeighLevels() const
std::set< unsigned int > GetNearNeighs(unsigned int sublevel) const
void SetNonIntListSize(unsigned int sublevels)
std::vector< unsigned int > nodesId
unsigned int GetChildId(unsigned int idInList) const
std::vector< std::set< unsigned int > > nearNeigh
void AddChild(unsigned int childId)
unsigned int GetBlockNodesNum() const
std::vector< unsigned int > GetBlockNodeList() const
void AddBlockToIntList(unsigned int sublevel, const unsigned int intListBlockId)
std::set< unsigned int > GetNonIntList(unsigned int sublevel) const
unsigned int GetIntListSize() const
void SetNearNeighSize(unsigned int sublevels)
void AddNode(unsigned int nodeId)
unsigned int NumIntList(unsigned int sublevel) const
DoFHandler< dim-1, dim >::active_cell_iterator cell_it
Point< dim > GetPMin() const
::Triangulation< dim, spacedim >::active_cell_iterator active_cell_iterator
unsigned int NumIntListLevels() const
unsigned int NumNearNeigh(unsigned int sublevel) const
void AddBlockToNonIntList(unsigned int sublevel, const unsigned int intListBlockId)
std::vector< std::set< unsigned int > > GetIntList() const
unsigned int GetNonIntListSize() const
unsigned int GetBlockChildrenNum() const
void SetIntListSize(unsigned int sublevels)
void AddNearNeigh(unsigned int sublevel, const unsigned int nnBlockId)
std::map< cell_it, std::vector< unsigned int > > quadPointsId
void CopyContent(const OctreeBlock *other)
unsigned int childrenId[8]