From bd224a508c5c0967e00db22afbce4709c721f045 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Sat, 4 Mar 2017 07:24:46 +0100 Subject: [PATCH] Avoid compiler warning without threads --- include/deal.II/lac/vector_operations_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/deal.II/lac/vector_operations_internal.h b/include/deal.II/lac/vector_operations_internal.h index 2947443272..52596a4fc5 100644 --- a/include/deal.II/lac/vector_operations_internal.h +++ b/include/deal.II/lac/vector_operations_internal.h @@ -162,8 +162,8 @@ namespace internal std_cxx11::shared_ptr &partitioner, size_type start = 0) { - size_type vec_size = end-start; #ifdef DEAL_II_WITH_THREADS + size_type vec_size = end-start; // only go to the parallel function in case there are at least 4 parallel // items, otherwise the overhead is too large if (vec_size >= 4*internal::Vector::minimum_parallel_grain_size && -- 2.39.5