1
0
Fork 0
mirror of https://github.com/cosmo-sims/MUSIC.git synced 2024-09-19 17:03:46 +02:00

bugfix to prevent convex_hull from always resetting number of omp threads to 1

This commit is contained in:
Dylan Nelson 2013-10-24 20:45:10 +00:00
parent 82beef69a6
commit 1b0b0b486d

View file

@ -284,7 +284,7 @@ struct convex_hull{
for( j=i, l=0; l<npoints_; ++l )
if( i!=l && turn(&points[3*i],&points[3*j],&points[3*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