From: Martin Kronbichler Date: Sun, 7 Nov 2021 10:00:28 +0000 (+0100) Subject: Fix some review documentation hinted in review comments X-Git-Tag: v9.4.0-rc1~849^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fd4a12c48861c9089f0d4585e8699bb60bbe62a;p=dealii.git Fix some review documentation hinted in review comments --- 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