From: Sebastian Fuchs Date: Tue, 31 Aug 2021 07:42:50 +0000 (+0200) Subject: Fix bug in particle handler insertion X-Git-Tag: v9.4.0-rc1~1014^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f45557a6cccf3ce3ed1ba8d81008cec0a77ed914;p=dealii.git Fix bug in particle handler insertion Fix a bug in ParticleHandler::insert_particles(const std::vector> &positions) that occurs when no particles are inserted on some processors. --- diff --git a/source/particles/particle_handler.cc b/source/particles/particle_handler.cc index 2f12ce3e91..f86f0ceabf 100644 --- a/source/particles/particle_handler.cc +++ b/source/particles/particle_handler.cc @@ -590,9 +590,6 @@ namespace Particles (void)missing_points; - if (cells.size() == 0) - return; - for (unsigned int i = 0; i < cells.size(); ++i) for (unsigned int p = 0; p < local_positions[i].size(); ++p) insert_particle(positions[index_map[i][p]],