From 549c71fb05f668af609576eae16a0ce228ae00ec Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 14 Oct 2010 16:01:17 +0000 Subject: [PATCH] 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 --- deal.II/base/include/base/work_stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5