From 3ed2bb7b8501a76c75247bec68b4f81c387a3339 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sat, 19 Dec 2015 13:45:00 +0000 Subject: [PATCH] fix compile --- Mesh/delaunay3d.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Mesh/delaunay3d.cpp b/Mesh/delaunay3d.cpp index 55ac435e3c..ce3ebac442 100644 --- a/Mesh/delaunay3d.cpp +++ b/Mesh/delaunay3d.cpp @@ -561,15 +561,14 @@ void delaunayTrgl (const unsigned int numThreads, int counter = 0; int counterMiss = 0; - double cavitySize [numThreads]; - int invalidCavities [numThreads]; - int cashMisses[numThreads]; - for (unsigned int i=0;i<numThreads;i++)cashMisses[i] = 0; + std::vector<double> cavitySize (numThreads); + std::vector<int> invalidCavities(numThreads); + std::vector<int> cashMisses(numThreads, 0); unsigned int maxLocSizeK = 0; - for (unsigned int i=0;i<numThreads*NPTS_AT_ONCE;i++){ + for (unsigned int i = 0; i < numThreads * NPTS_AT_ONCE; i++){ unsigned int s = assignTo[i].size(); - maxLocSizeK = std::max(maxLocSizeK,s); + maxLocSizeK = std::max(maxLocSizeK, s); } #pragma omp parallel num_threads(numThreads) -- GitLab