From 0fd4a12c48861c9089f0d4585e8699bb60bbe62a Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Sun, 7 Nov 2021 11:00:28 +0100 Subject: [PATCH] Fix some review documentation hinted in review comments --- include/deal.II/particles/particle_handler.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/deal.II/particles/particle_handler.h b/include/deal.II/particles/particle_handler.h index 1b6e5b5f45..e84ea81a4b 100644 --- a/include/deal.II/particles/particle_handler.h +++ b/include/deal.II/particles/particle_handler.h @@ -897,7 +897,7 @@ namespace Particles * container to check for valid states. */ void - reset_particle_container(const Triangulation *trianulation, + reset_particle_container(const Triangulation *triangulation, particle_container & particles); /** @@ -929,8 +929,8 @@ namespace Particles particle_container particles; /** - * Iterator to the start of the end of the list elements of - * particle_container which belong to locally owned elements. + * Iterator to the end of the list elements of particle_container which + * belong to locally owned elements. */ typename particle_container::iterator owned_particles_end; @@ -1172,6 +1172,8 @@ namespace Particles inline typename ParticleHandler::particle_iterator ParticleHandler::begin() { + // We should always have at least the three anchor entries in the list of + // particles Assert(!particles.empty(), ExcInternalError()); // jump over the first entry which is used for book-keeping -- 2.39.5