diff --git a/bh_tree_mpi/datastructures/Tree.cpp b/bh_tree_mpi/datastructures/Tree.cpp index 1829878a38022282e916a424e1f4227468804dfc..1c882ddd0a2bd93f2734b76d9d45f3838255d3da 100644 --- a/bh_tree_mpi/datastructures/Tree.cpp +++ b/bh_tree_mpi/datastructures/Tree.cpp @@ -44,13 +44,12 @@ namespace nbody { } current = current->next; } - /* + BarnesHutTree* bht = dynamic_cast(this); if (bht != NULL && !(bht->control.processedNodes == 0 && bht->control.toProcess.empty())) { cout << bht->control.toProcess.size() << endl; return false; } - */ return true; } diff --git a/bh_tree_mpi/datastructures/Tree.hpp b/bh_tree_mpi/datastructures/Tree.hpp index 3503a8c5e11ab3a2112d33d1029023b82d1bff94..10757ea93e260986404c0e2d3c75b8a1704e6ef8 100644 --- a/bh_tree_mpi/datastructures/Tree.hpp +++ b/bh_tree_mpi/datastructures/Tree.hpp @@ -19,7 +19,7 @@ namespace nbody { unsigned int maxLeafBodies; Tree* tree; int processedNodes; - //stack toProcess; + stack toProcess; pthread_rwlock_t lock; } Control;