From: Bruno Date: Wed, 9 Jun 2021 14:14:39 +0000 (-0400) Subject: FIx cell type that is checked X-Git-Tag: v9.4.0-rc1~1248^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12412%2Fhead;p=dealii.git FIx cell type that is checked --- diff --git a/include/deal.II/particles/particle_accessor.h b/include/deal.II/particles/particle_accessor.h index 3e6a860797..855baa9ea0 100644 --- a/include/deal.II/particles/particle_accessor.h +++ b/include/deal.II/particles/particle_accessor.h @@ -713,7 +713,6 @@ namespace Particles ++particle_index_within_cell; - if (particle_index_within_cell > (*particles)[active_cell_index].size() - 1) { const bool particle_is_locally_owned = cell->is_locally_owned(); diff --git a/source/particles/particle_handler.cc b/source/particles/particle_handler.cc index 07ff750412..3cbddcf6d7 100644 --- a/source/particles/particle_handler.cc +++ b/source/particles/particle_handler.cc @@ -1310,7 +1310,7 @@ namespace Particles #else // Clear ghost particles and their properties for (const auto &cell : triangulation->active_cell_iterators()) - if (cell->is_locally_owned() == false) + if (cell->is_ghost()) { // Clear particle properties for (auto &ghost_particle : particles[cell->active_cell_index()])