From: Daniel Arndt Date: Wed, 7 Jun 2023 15:03:15 +0000 (+0000) Subject: Explicitly specify type in ParticleHandler for nvcc X-Git-Tag: v9.5.0-rc1~143^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15325%2Fhead;p=dealii.git Explicitly specify type in ParticleHandler for nvcc --- diff --git a/include/deal.II/particles/particle_handler.h b/include/deal.II/particles/particle_handler.h index 5fa175b031..e0e5a38113 100644 --- a/include/deal.II/particles/particle_handler.h +++ b/include/deal.II/particles/particle_handler.h @@ -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()); - const auto id = p.get_id(); + Point new_point(displace_particles ? p.get_location() : + Point()); + 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);