]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix constraint_info.h for g++-13 on MacOS X 16456/head
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 11 Jan 2024 14:51:08 +0000 (09:51 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 11 Jan 2024 17:33:16 +0000 (12:33 -0500)
include/deal.II/matrix_free/constraint_info.h

index 77afa5b41df196c13b7b627bd91a9861daf87f25..c8c71a6ec1d326ae768c1e7c7de2ba20f1e013b2 100644 (file)
@@ -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],

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.