Increment avgIndicesReturned directly.

This commit is contained in:
Ryan Curtin
2016-07-08 16:27:23 -04:00
parent ca1e3ecba3
commit 44c7c3578f
+1 -1
View File
@@ -929,7 +929,7 @@ Search(const size_t k,
// returned on average.
// Make atomic to avoid race conditions when multiple threads are running.
// #pragma omp atomic
avgIndicesReturned = avgIndicesReturned + refIndices.n_elem;
avgIndicesReturned += refIndices.n_elem;
// Sequentially go through all the candidates and save the best 'k'
// candidates.