From: bangerth Date: Thu, 14 Oct 2010 16:01:17 +0000 (+0000) Subject: Fix an oversight: the ring_buffer's length only needs to be equal to the queue length... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=549c71fb05f668af609576eae16a0ce228ae00ec;p=dealii-svn.git Fix an oversight: the ring_buffer's length only needs to be equal to the queue length, not equal to the queue length times the chunk size. Each element of the ring buffer has enough data to store chunk_size entries, though. git-svn-id: https://svn.dealii.org/trunk@22345 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/work_stream.h b/deal.II/base/include/base/work_stream.h index 0a0dcfaed9..7771563b3a 100644 --- a/deal.II/base/include/base/work_stream.h +++ b/deal.II/base/include/base/work_stream.h @@ -521,7 +521,7 @@ namespace WorkStream // pipeline internal::IteratorRangeToItemStream iterator_range_to_item_stream (begin, end, - queue_length * chunk_size, + queue_length, chunk_size, sample_scratch_data, sample_copy_data);