Newer
Older
#include "datastructures/BarnesHutTree.hpp"
int main(int argc, char* argv[]) {
tree.print();
tree.computeForces();
tree.moveBodies();
tree.rebuildTree();
if (!tree.isCorrect()) {
cout << "Tree not correct" << endl;
return -1;
}
tree.print();
} else {
std::cout << "You need to specify the body input file." << endl;
}