]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid compiler warning without threads 4024/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sat, 4 Mar 2017 06:24:46 +0000 (07:24 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sat, 4 Mar 2017 06:24:46 +0000 (07:24 +0100)
include/deal.II/lac/vector_operations_internal.h

index 2947443272ef7eee39cd3855d0b96ee0f8e37537..52596a4fc5785ac2deec94fbd1e532119e742335 100644 (file)
@@ -162,8 +162,8 @@ namespace internal
                       std_cxx11::shared_ptr<parallel::internal::TBBPartitioner> &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 &&

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.