From 375a140494cfbdfa0054df985139799edd4ba325 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Thu, 29 Oct 2020 15:40:25 +0100 Subject: [PATCH] Another one --- source/particles/particle_handler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/particles/particle_handler.cc b/source/particles/particle_handler.cc index 523dda593b..a41ad79c2a 100644 --- a/source/particles/particle_handler.cc +++ b/source/particles/particle_handler.cc @@ -603,7 +603,7 @@ namespace Particles it.second.n_elements(), std::vector(n_properties_per_particle())); unsigned int index = 0; - for (const auto &el : it.second) + for (const auto el : it.second) properties_to_send[index++] = properties[el]; non_locally_owned_properties.insert( {it.first, properties_to_send}); @@ -628,7 +628,7 @@ namespace Particles std::vector ids_to_send( it.second.n_elements()); unsigned int index = 0; - for (const auto &el : it.second) + for (const auto el : it.second) ids_to_send[index++] = ids[el]; non_locally_owned_ids.insert({it.first, ids_to_send}); } -- 2.39.5