From 466b176f7b367a04cdeee28787a8984caa0e6f76 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Tue, 17 Feb 2015 06:33:33 -0500 Subject: [PATCH] fix multithread_info when THREADS=OFF static members have to be initialized even if deal.II is configured without multithreading. --- source/base/multithread_info.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/base/multithread_info.cc b/source/base/multithread_info.cc index 453dee100e..65e0a2a7cb 100644 --- a/source/base/multithread_info.cc +++ b/source/base/multithread_info.cc @@ -98,9 +98,6 @@ unsigned int MultithreadInfo::get_n_cpus() # endif -const unsigned int MultithreadInfo::n_cpus = MultithreadInfo::get_n_cpus(); -unsigned int MultithreadInfo::n_max_threads = numbers::invalid_unsigned_int; - unsigned int MultithreadInfo::n_cores() { return MultithreadInfo::n_cpus; @@ -210,6 +207,9 @@ MultithreadInfo::memory_consumption () } +const unsigned int MultithreadInfo::n_cpus = MultithreadInfo::get_n_cpus(); +unsigned int MultithreadInfo::n_max_threads = numbers::invalid_unsigned_int; + // definition of the variable which is declared `extern' in the .h file MultithreadInfo multithread_info; -- 2.39.5