From: kronbichler Date: Sun, 24 Nov 2013 14:22:10 +0000 (+0000) Subject: Disable multithreading path when not using more than one thread. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f13ceb8f2d763c99ecb230b45cb153b9974fdf28;p=dealii-svn.git Disable multithreading path when not using more than one thread. git-svn-id: https://svn.dealii.org/trunk@31784 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/matrix_free/matrix_free.templates.h b/deal.II/include/deal.II/matrix_free/matrix_free.templates.h index 4e3d3c463a..0a4fa866e7 100644 --- a/deal.II/include/deal.II/matrix_free/matrix_free.templates.h +++ b/deal.II/include/deal.II/matrix_free/matrix_free.templates.h @@ -263,7 +263,8 @@ internal_reinit(const Mapping &mapping, // initialize the basic multithreading information that needs to be // passed to the DoFInfo structure #ifdef DEAL_II_WITH_THREADS - if (additional_data.tasks_parallel_scheme != AdditionalData::none) + if (additional_data.tasks_parallel_scheme != AdditionalData::none && + multithread_info.n_threads() > 1) { task_info.use_multithreading = true; task_info.block_size = additional_data.tasks_block_size;