From f45557a6cccf3ce3ed1ba8d81008cec0a77ed914 Mon Sep 17 00:00:00 2001 From: Sebastian Fuchs Date: Tue, 31 Aug 2021 09:42:50 +0200 Subject: [PATCH] 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. --- source/particles/particle_handler.cc | 3 --- 1 file changed, 3 deletions(-) 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]], -- 2.39.5