]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Update loop 16164/head
authorLaura Prieto Saavedra <lauraprietosaavedra@gmail.com>
Fri, 20 Oct 2023 13:52:55 +0000 (09:52 -0400)
committerLaura Prieto Saavedra <lauraprietosaavedra@gmail.com>
Fri, 20 Oct 2023 13:52:55 +0000 (09:52 -0400)
source/grid/tria.cc

index 38c8beed8ca86b8961b07bfee4069cceabe485ec..f8914c93c7aaf4bea9bcac1a875290b1200c38f6 100644 (file)
@@ -12524,8 +12524,9 @@ void Triangulation<dim, spacedim>::copy_triangulation(
   this->periodic_face_pairs_level_0.reserve(
     other_tria.periodic_face_pairs_level_0.size());
 
-  for (auto entry : other_tria.periodic_face_pairs_level_0)
+  for (const auto &other_entry : other_tria.periodic_face_pairs_level_0)
     {
+      auto entry = other_entry;
       entry.cell[0] =
         cell_iterator(this, entry.cell[0]->level(), entry.cell[0]->index());
       entry.cell[1] =

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.