From 09346416e2197adcb066db048d6528a4f72c8126 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Thu, 29 Oct 2020 10:29:07 +0100 Subject: [PATCH] Do not use a reference in range-based for over IndexSet --- include/deal.II/numerics/vector_tools_interpolate.templates.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/deal.II/numerics/vector_tools_interpolate.templates.h b/include/deal.II/numerics/vector_tools_interpolate.templates.h index b9dcad1d97..ace6175041 100644 --- a/include/deal.II/numerics/vector_tools_interpolate.templates.h +++ b/include/deal.II/numerics/vector_tools_interpolate.templates.h @@ -599,7 +599,7 @@ namespace VectorTools // Compute the mean value of the sum which has been placed in // each entry of the output vector only at locally owned elements. - for (const auto &i : data_2.locally_owned_elements()) + for (const auto i : data_2.locally_owned_elements()) { const number touch_count_i = ::dealii::internal::ElementAccess::get(touch_count, i); -- 2.39.5