From 376155317a9eea01da3a8539978a751ec4433227 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Mon, 25 Nov 2013 09:19:25 +0000 Subject: [PATCH] Second part of r31784 git-svn-id: https://svn.dealii.org/trunk@31790 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/matrix_free/matrix_free.templates.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 0a4fa866e7..193df65ef7 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 @@ -142,7 +142,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; -- 2.39.5