Skip to content
Snippets Groups Projects
Commit 1fb38c2f authored by Paul Heinzlreiter's avatar Paul Heinzlreiter
Browse files

* bh tree build

parent 80e146f5
Branches
No related merge requests found
......@@ -37,26 +37,6 @@ namespace nbody {
if (!current->isCorrect()) {
return false;
}
/*
if (!current->leaf) {
//inner node
int numChildren = 0;
for (TreeNode* child = current->next; child->afterSubtree != current->afterSubtree; child = child->afterSubtree) {
numChildren++;
if (!child->isCorrect()) {
return false;
}
}
if (dynamic_cast<BarnesHutTree*>(this) != NULL) {
if (numChildren != 8) {
return false;
}
}
}
*/
current = current->next;
}
return true;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment