]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Store value, not reference, in a local variable.
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 5 Jan 2021 17:12:54 +0000 (10:12 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 5 Jan 2021 17:14:11 +0000 (10:14 -0700)
include/deal.II/particles/utilities.h

index e3f3bd6fa3a3fefef385dce67cdeedd05fa59596..3b60163226f69f9926009d288cabc6b887aeb478 100644 (file)
@@ -233,7 +233,7 @@ namespace Particles
           Assert(pic.begin() == particle, ExcInternalError());
           for (unsigned int i = 0; particle != pic.end(); ++particle, ++i)
             {
-              const auto &reference_location =
+              const Point<dim> reference_location =
                 particle->get_reference_location();
 
               const auto id = particle->get_id();

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.