From: Martin Kronbichler Date: Thu, 29 Oct 2020 14:40:25 +0000 (+0100) Subject: Another one X-Git-Tag: v9.3.0-rc1~954^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11113%2Fhead;p=dealii.git Another one --- 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}); }