]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid accessing artificial cells in ParticleHandler 10547/head
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 18 Jun 2020 14:35:37 +0000 (10:35 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 18 Jun 2020 14:39:19 +0000 (10:39 -0400)
source/particles/particle_handler.cc

index 663929a1c3a6fe8156aa1cea34f66f75e9bc6b6e..9a0438458cdb228befa1afe6ce1a964cf62cbec2 100644 (file)
@@ -1134,7 +1134,7 @@ namespace Particles
 
     for (const auto &cell : triangulation->active_cell_iterators())
       {
-        if (!cell->is_ghost())
+        if (cell->is_locally_owned())
           {
             std::set<unsigned int> cell_to_neighbor_subdomain;
             for (const unsigned int v : GeometryInfo<dim>::vertex_indices())

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.