From: Daniel Arndt Date: Thu, 18 Jun 2020 14:35:37 +0000 (-0400) Subject: Avoid accessing artificial cells in ParticleHandler X-Git-Tag: v9.3.0-rc1~1421^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10547%2Fhead;p=dealii.git Avoid accessing artificial cells in ParticleHandler --- diff --git a/source/particles/particle_handler.cc b/source/particles/particle_handler.cc index 663929a1c3..9a0438458c 100644 --- a/source/particles/particle_handler.cc +++ b/source/particles/particle_handler.cc @@ -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 cell_to_neighbor_subdomain; for (const unsigned int v : GeometryInfo::vertex_indices())