From 7a69c7bd48d83115470b4de3e5d78f4462c9231d Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Tue, 5 Nov 2024 16:50:40 -0500 Subject: [PATCH] parallel::transform() fix iterator type --- include/deal.II/base/parallel.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/deal.II/base/parallel.h b/include/deal.II/base/parallel.h index d22c8ad696..8e38e803ca 100644 --- a/include/deal.II/base/parallel.h +++ b/include/deal.II/base/parallel.h @@ -173,7 +173,7 @@ namespace parallel // warnings about unused arguments (void)grainsize; - for (OutputIterator in = begin_in; in != end_in;) + for (InputIterator in = begin_in; in != end_in;) *out++ = function(*in++); #else using Iterators = std::tuple; @@ -249,7 +249,7 @@ namespace parallel // warnings about unused arguments (void)grainsize; - for (OutputIterator in1 = begin_in1; in1 != end_in1;) + for (InputIterator in1 = begin_in1; in1 != end_in1;) *out++ = function(*in1++, *in2++); #else using Iterators = @@ -332,7 +332,7 @@ namespace parallel // warnings about unused arguments (void)grainsize; - for (OutputIterator in1 = begin_in1; in1 != end_in1;) + for (InputIterator in1 = begin_in1; in1 != end_in1;) *out++ = function(*in1++, *in2++, *in3++); #else using Iterators = std:: -- 2.39.5