]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix some review documentation hinted in review comments
authorMartin Kronbichler <martin.kronbichler@it.uu.se>
Sun, 7 Nov 2021 10:00:28 +0000 (11:00 +0100)
committerMartin Kronbichler <martin.kronbichler@it.uu.se>
Sun, 7 Nov 2021 10:02:39 +0000 (11:02 +0100)
include/deal.II/particles/particle_handler.h

index 1b6e5b5f45e79640f17f9cc0376fd26c5800d834..e84ea81a4b3c15d82b43a447840ce61ca5b85570 100644 (file)
@@ -897,7 +897,7 @@ namespace Particles
      * container to check for valid states.
      */
     void
-    reset_particle_container(const Triangulation<dim, spacedim> *trianulation,
+    reset_particle_container(const Triangulation<dim, spacedim> *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<dim, spacedim>::particle_iterator
   ParticleHandler<dim, spacedim>::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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.