From 1b0b0b486d22816353305c6aa114c609213e0ff0 Mon Sep 17 00:00:00 2001 From: Dylan Nelson Date: Thu, 24 Oct 2013 20:45:10 +0000 Subject: [PATCH] bugfix to prevent convex_hull from always resetting number of omp threads to 1 --- plugins/convex_hull.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/convex_hull.hh b/plugins/convex_hull.hh index 7785860..8e36817 100644 --- a/plugins/convex_hull.hh +++ b/plugins/convex_hull.hh @@ -284,7 +284,7 @@ struct convex_hull{ for( j=i, l=0; l= 0 ) j=l; - int nt = omp_get_num_threads(); + int nt = omp_get_max_threads(); omp_set_num_threads( std::min(2,omp_get_max_threads()) ); #pragma omp parallel for