From: Daniel Arndt Date: Thu, 11 Jan 2024 14:51:08 +0000 (-0500) Subject: Fix constraint_info.h for g++-13 on MacOS X X-Git-Tag: relicensing~177^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16456%2Fhead;p=dealii.git Fix constraint_info.h for g++-13 on MacOS X --- 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],