]> https://gitweb.dealii.org/ - dealii.git/commitdiff
FEInterfaceValues: fix some warnings. 17764/head
authorDavid Wells <drwells@email.unc.edu>
Thu, 10 Oct 2024 01:42:10 +0000 (21:42 -0400)
committerDavid Wells <drwells@email.unc.edu>
Thu, 10 Oct 2024 01:42:10 +0000 (21:42 -0400)
Most of the std::array assignments have the correct number of brackets; this
commit adds the missing ones.

include/deal.II/fe/fe_interface_values.h

index 3b0b2371f7f386356b6b67ba933b29c34ace6bf2..98e2b364bbb688ce9ccd01980d30dd7430550a04 100644 (file)
@@ -2570,14 +2570,14 @@ FEInterfaceValues<dim, spacedim>::reinit(
       for (unsigned int i = 0; i < n_dofs_per_cell_1; ++i)
         {
           interface_dof_indices[i] = numbers::invalid_dof_index;
-          dofmap[i]                = {i, numbers::invalid_unsigned_int};
+          dofmap[i]                = {{i, numbers::invalid_unsigned_int}};
         }
 
       for (unsigned int i = 0; i < n_dofs_per_cell_2; ++i)
         {
           interface_dof_indices[i + n_dofs_per_cell_1] =
             numbers::invalid_dof_index;
-          dofmap[i + n_dofs_per_cell_1] = {numbers::invalid_unsigned_int, i};
+          dofmap[i + n_dofs_per_cell_1] = {{numbers::invalid_unsigned_int, i}};
         }
     }
 }

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.