From 9018031eba405b698685645e5dab884a8367e343 Mon Sep 17 00:00:00 2001 From: Laura Prieto Saavedra Date: Fri, 20 Oct 2023 09:52:55 -0400 Subject: [PATCH] Update loop --- source/grid/tria.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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] = -- 2.39.5