]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make particle_handler.cc compile again 12526/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 30 Jun 2021 08:15:17 +0000 (10:15 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 30 Jun 2021 08:15:17 +0000 (10:15 +0200)
source/particles/particle_handler.cc

index 5ddcad2e17130d2043d04a455413af648c9d88a0..5426e9e6bd6274f3c9e400a53fc52db1f07fb77d 100644 (file)
@@ -1914,7 +1914,7 @@ namespace Particles
     (void)distributed_triangulation;
 
     Assert(
-      distributed_triangulation || local_number_of_particles == 0,
+      distributed_triangulation || number_of_locally_owned_particles == 0,
       ExcMessage(
         "Mesh refinement in a non-distributed triangulation is not supported "
         "by the ParticleHandler class. Either insert particles after mesh "
@@ -1922,7 +1922,7 @@ namespace Particles
 
     // Resize the container if it is possible without
     // transferring particles
-    if (local_number_of_particles == 0)
+    if (number_of_locally_owned_particles == 0)
       particles.resize(triangulation->n_active_cells());
   }
 

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.