diff --git a/SparseGrids/tsgGridLocalPolynomial.cpp b/SparseGrids/tsgGridLocalPolynomial.cpp index aaf8ce9a1..8e4afb36e 100644 --- a/SparseGrids/tsgGridLocalPolynomial.cpp +++ b/SparseGrids/tsgGridLocalPolynomial.cpp @@ -1266,14 +1266,14 @@ Data2D GridLocalPolynomial::buildUpdateMap(double tolerance, TypeRefinement int max_1D_parents = rule->getMaxNumParents(); HierarchyManipulations::SplitDirections split(points); - - #pragma omp parallel for + std::vector global_to_pnts(num_points); + #pragma omp parallel for firstprivate(global_to_pnts) for(int j=0; j global_to_pnts(num_points); + std::vector levels(nump); int max_level = 0;