Fix double parallelization

This commit is contained in:
tamasmeszaros 2022-06-20 16:32:07 +02:00
parent 064e9935d1
commit bf1303b9cf

View File

@ -210,7 +210,7 @@ void create_branching_tree(SupportTreeBuilder &builder, const SupportableMesh &s
ex_tbb, size_t(0), nondup_idx.size(),
[&sm, &heads, &nondup_idx, &builder](size_t i) {
if (!builder.ctl().stopcondition())
heads[i] = calculate_pinhead_placement(ex_tbb, sm, nondup_idx[i]);
heads[i] = calculate_pinhead_placement(ex_seq, sm, nondup_idx[i]);
},
execution::max_concurrency(ex_tbb)
);