]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Explicitly specify type in ParticleHandler for nvcc 15325/head
authorDaniel Arndt <arndtd@ornl.gov>
Wed, 7 Jun 2023 15:03:15 +0000 (15:03 +0000)
committerDaniel Arndt <arndtd@ornl.gov>
Wed, 7 Jun 2023 17:11:43 +0000 (13:11 -0400)
include/deal.II/particles/particle_handler.h

index 5fa175b03194be63938fa19921cbb7691e74d710..e0e5a381136d34b4f26192179aaf64245a1b24e8 100644 (file)
@@ -1341,9 +1341,9 @@ namespace Particles
                     get_next_free_particle_index() * spacedim);
     for (auto &p : *this)
       {
-        auto       new_point(displace_particles ? p.get_location() :
-                                                  Point<spacedim>());
-        const auto id = p.get_id();
+        Point<spacedim> new_point(displace_particles ? p.get_location() :
+                                                       Point<spacedim>());
+        const auto      id = p.get_id();
         for (unsigned int i = 0; i < spacedim; ++i)
           new_point[i] += input_vector[id * spacedim + i];
         p.set_location(new_point);

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.