]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Clear data in ThreadLocalStorage also when not using threads 5007/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 1 Sep 2017 13:05:46 +0000 (15:05 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 1 Sep 2017 13:17:10 +0000 (15:17 +0200)
include/deal.II/base/thread_local_storage.h

index a610439e4c72bf4f83bb04e12bd69dd1ac15ecb3..00b7f896fa8c76ccae84247fb029c3ed50d46f25 100644 (file)
@@ -267,6 +267,8 @@ namespace Threads
   {
 #ifdef DEAL_II_WITH_THREADS
     data.clear ();
+#else
+    data = T {};
 #endif
   }
 }   // end of implementation of namespace Threads

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.