From 335a5cf7df4d160c4d72dcb1852bfd3f700c685f Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 11 Jan 2024 09:51:08 -0500 Subject: [PATCH] Fix constraint_info.h for g++-13 on MacOS X --- include/deal.II/matrix_free/constraint_info.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/deal.II/matrix_free/constraint_info.h b/include/deal.II/matrix_free/constraint_info.h index 77afa5b41d..c8c71a6ec1 100644 --- a/include/deal.II/matrix_free/constraint_info.h +++ b/include/deal.II/matrix_free/constraint_info.h @@ -683,8 +683,9 @@ namespace internal if (hn_available == true) { - for (unsigned int v = n_lanes_filled; v < Number::size(); ++v) - constraint_mask[v] = unconstrained_compressed_constraint_kind; + std::fill(constraint_mask.begin() + n_lanes_filled, + constraint_mask.end(), + unconstrained_compressed_constraint_kind); for (unsigned int i = 1; i < n_lanes_filled; ++i) AssertDimension(active_fe_indices[first_cell], -- 2.39.5