45 #define LEVEL_LIST_GROW_CHUNK 50 65 int nnodes =
Graph->giveDomain()->giveNumberOfDofManagers();
70 nodalStatuses.
at(
Root) = 1;
77 int CurrLevelWidth = 0;
79 for (
int n:
Graph->giveNode( inode ).giveNeighborList() ) {
80 if ( nodalStatuses.
at(n) == 0 ) {
82 nodalStatuses.
at(n) = 1;
83 if ( ( limitWidth > 0 ) && ( ++CurrLevelWidth > limitWidth ) ) {
106 for (
int i = 1; i <=
giveDepth(); i++ ) {
108 if (
Width < LevelWidth ) {
int formYourself(int limitWidth=-1)
Builds the level structure.
#define LEVEL_LIST_GROW_CHUNK
int giveDepth()
Returns the depth of receiver.
bool isEmpty() const
Checks if receiver is empty (i.e., zero sized).
int Width
Width of structure defined as max number of nodes in all levels.
~SloanLevelStructure()
Destructor.
Class implementing an array of integers.
int & at(int i)
Coefficient access function.
Class representing the special graph constructed from two polygons that is used to perform boolean op...
void resize(int n)
Checks size of receiver towards requested bounds.
IntArray & giveLevel(int num)
Returns the i-th level of receiver.
int Root
Root node of level structure.
void followedBy(const IntArray &b, int allocChunk=0)
Appends array b at the end of receiver.
std::vector< IntArray > Structure
Data representation of structure: List of arrays, one array for each level.
void computeDepth()
Computes depth of receiver.
the oofem namespace is to define a context or scope in which all oofem names are defined.
void destroyLevels()
Destroys all levels.
void computeWidth()
Computes the Width of receiver.
int Depth
Depth of structure defined as number of levels.