Skip to content

Commit f6ed49e

Browse files
committed
apply one more search round for the parallel version
1 parent 4e1bd80 commit f6ed49e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tree/tree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@ void cmaple::Tree::optimizeTreeTopology(const int num_threads,
12771277
// record the start time
12781278
auto start = getRealTime();
12791279
int num_tree_improvement =
1280-
short_range_search ? 1 : params->num_tree_improvement;
1280+
short_range_search ? 1 : ((num_threads == 1?0:1) + params->num_tree_improvement);
12811281

12821282
for (int i = 0; i < num_tree_improvement; ++i) {
12831283
// first, set all nodes outdated

0 commit comments

Comments
 (0)