diff --git a/gtsam/inference/JunctionTreeUnordered-inst.h b/gtsam/inference/JunctionTreeUnordered-inst.h index b392d210c..0915d741a 100644 --- a/gtsam/inference/JunctionTreeUnordered-inst.h +++ b/gtsam/inference/JunctionTreeUnordered-inst.h @@ -269,7 +269,7 @@ namespace gtsam { EliminationData rootsContainer(0, roots_.size()); //tbb::task_scheduler_init init(1); treeTraversal::DepthFirstForestParallel(*this, rootsContainer, eliminationPreOrderVisitor, - boost::bind(eliminationPostOrderVisitor, _1, _2, function), -10000); + boost::bind(eliminationPostOrderVisitor, _1, _2, function), 5); // Create BayesTree from roots stored in the dummy BayesTree node. boost::shared_ptr result = boost::make_shared();