From c2d5562a4c68cf39ab1e22f718732eb774eb3a2a Mon Sep 17 00:00:00 2001 From: heister Date: Wed, 2 Oct 2013 17:40:44 +0000 Subject: [PATCH] do not use n_default_threads git-svn-id: https://svn.dealii.org/trunk@31074 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/base/work_stream.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/deal.II/include/deal.II/base/work_stream.h b/deal.II/include/deal.II/base/work_stream.h index 45b15fe197..6adf56830a 100644 --- a/deal.II/include/deal.II/base/work_stream.h +++ b/deal.II/include/deal.II/base/work_stream.h @@ -814,7 +814,7 @@ namespace WorkStream Copier copier, const ScratchData &sample_scratch_data, const CopyData &sample_copy_data, - const unsigned int queue_length = 2*multithread_info.n_default_threads, + const unsigned int queue_length = 2*multithread_info.n_threads(), const unsigned int chunk_size = 8) { Assert (queue_length > 0, @@ -925,7 +925,7 @@ namespace WorkStream * necessary for the graph_coloring. Graph coloring is * necessary to be able to copy the data in parallel. If * the number of elements in some colors is less than - * @p chunk_size time multithread_info.n_default_threads, + * @p chunk_size time multithread_info.n_threads(), * these elements are aggregated and copied serially. * * The @p queue_length argument indicates @@ -960,7 +960,7 @@ namespace WorkStream const CopyData &sample_copy_data, const std_cxx1x::function (const Iterator &)> &get_conflict_indices, - const unsigned int queue_length = 2*multithread_info.n_default_threads, + const unsigned int queue_length = 2*multithread_info.n_threads(), const unsigned int chunk_size = 8) { Assert (queue_length > 0, @@ -1008,9 +1008,9 @@ namespace WorkStream begin,end,get_conflict_indices); // colors that do not have cells, i.e., less than chunk_size times - // multithread_info.n_default_threads, are gathered and the copier is + // multithread_info.n_threads(), are gathered and the copier is // called serially. - const unsigned int serial_limit(chunk_size*multithread_info.n_default_threads); + const unsigned int serial_limit(chunk_size*multithread_info.n_threads()); std::vector serial_copying; for (unsigned int color=0; color (MainClass::*get_conflict_indices)(const Iterator &), - const unsigned int queue_length = 2*multithread_info.n_default_threads, + const unsigned int queue_length = 2*multithread_info.n_threads(), const unsigned int chunk_size = 8) { // forward to the other function -- 2.39.5