From 599d6fdad1ef51187edcc0992bc7f613d75b340f Mon Sep 17 00:00:00 2001 From: Paul Heinzlreiter Date: Mon, 8 Aug 2016 16:56:00 +0200 Subject: [PATCH] * debugging --- bh_tree_mpi/datastructures/Tree.cpp | 3 +-- bh_tree_mpi/datastructures/Tree.hpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bh_tree_mpi/datastructures/Tree.cpp b/bh_tree_mpi/datastructures/Tree.cpp index 1829878..1c882dd 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 3503a8c..10757ea 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; -- GitLab