From: Laura Prieto Saavedra Date: Fri, 20 Oct 2023 13:52:55 +0000 (-0400) Subject: Update loop X-Git-Tag: relicensing~376^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9018031eba405b698685645e5dab884a8367e343;p=dealii.git Update loop --- diff --git a/source/grid/tria.cc b/source/grid/tria.cc index 38c8beed8c..f8914c93c7 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -12524,8 +12524,9 @@ void Triangulation::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] =