]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Another one 11113/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 29 Oct 2020 14:40:25 +0000 (15:40 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 29 Oct 2020 14:40:25 +0000 (15:40 +0100)
source/particles/particle_handler.cc

index 523dda593b16adb1691464db1d5ca278755c20de..a41ad79c2afbbd0a63cb7a9589ac50a78b8a55aa 100644 (file)
@@ -603,7 +603,7 @@ namespace Particles
                   it.second.n_elements(),
                   std::vector<double>(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<types::particle_index> 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});
               }

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.