]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make a test compile with -Werror. 18214/head
authorDavid Wells <drwells@email.unc.edu>
Mon, 10 Mar 2025 13:48:19 +0000 (09:48 -0400)
committerDavid Wells <drwells@email.unc.edu>
Mon, 10 Mar 2025 13:48:19 +0000 (09:48 -0400)
tests/hp/fe_face_values_reinit_01.cc

index 44a7013d97284c2b0d6054a38b92da3e7bb49d1d..c75faa874ec48cc7eec895dd65f78c245776a642 100644 (file)
@@ -76,7 +76,7 @@ test()
 
   for (const auto &cell : triangulation.active_cell_iterators())
     {
-      for (const auto face : cell->face_iterators())
+      for (const auto &face : cell->face_iterators())
         {
           hp_fe_face_values.reinit(cell, face);
 
@@ -90,7 +90,7 @@ test()
 
   for (const auto &cell : dof_handler.active_cell_iterators())
     {
-      for (const auto face : cell->face_indices())
+      for (const auto &face : cell->face_indices())
         {
           hp_fe_face_values.reinit(cell, face);
 
@@ -104,7 +104,7 @@ test()
 
   for (const auto &cell : dof_handler.active_cell_iterators())
     {
-      for (const auto face : cell->face_iterators())
+      for (const auto &face : cell->face_iterators())
         {
           hp_fe_face_values.reinit(cell, face);
 

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.