]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add missing #ifdef DEAL_II_WITH_THREADS around tbb calls 7825/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Mon, 18 Mar 2019 18:40:14 +0000 (14:40 -0400)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Mon, 18 Mar 2019 18:40:14 +0000 (14:40 -0400)
include/deal.II/base/parallel.h

index 8b9d5cc49159b601ff6f13ba0c8929732d5d2358..3fd86d2df1a66991aafb3e6582b1ac5c2e8381db 100644 (file)
@@ -147,6 +147,7 @@ namespace parallel
 
 
 
+#ifdef DEAL_II_WITH_THREADS
     /**
      * Encapsulate tbb::parallel_for.
      */
@@ -179,6 +180,7 @@ namespace parallel
                         functor,
                         *partitioner);
     }
+#endif
   } // namespace internal
 
   /**

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.