]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Update source/particles/generators.cc 9431/head
authorMFraters <menno.fraters@outlook.com>
Sat, 25 Jan 2020 18:22:56 +0000 (10:22 -0800)
committerMenno Fraters <menno.fraters@outlook.com>
Sat, 25 Jan 2020 18:38:49 +0000 (10:38 -0800)
Co-Authored-By: Daniel Arndt <arndtd@ornl.gov>
source/particles/generators.cc

index d767559d3d23550b6e8a44ec252c37cc4c6e579d..1ccc31fc712a33a570efed15194526b1fc7f6c36 100644 (file)
@@ -311,9 +311,9 @@ namespace Particles
 
         // Calcualate number of local particles
         const types::particle_index end_particle_id =
-          llround(static_cast<double>(n_particles_to_create) *
-                  ((local_start_weight + local_weight_integral) /
-                   global_weight_integral));
+          std::llround(static_cast<double>(n_particles_to_create) *
+                       ((local_start_weight + local_weight_integral) /
+                        global_weight_integral));
         n_local_particles = end_particle_id - start_particle_id;
 
         if (random_cell_selection)

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.