]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Also avoid a potentially endless loop. Fix typo.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 20 Jul 2013 12:07:47 +0000 (12:07 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 20 Jul 2013 12:07:47 +0000 (12:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@30077 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/grid/tria.cc

index b12116a191a832d380e579367700dc9bd00c6af1..42aaa7279e23d1dcb3c6b29daf5db8ae413a1f6c 100644 (file)
@@ -12206,9 +12206,9 @@ void Triangulation<dim, spacedim>::execute_coarsening ()
   // deleted (if the latter are on a
   // higher level for example)
   //
-  // since we delete teh *children* of cells, we only need to start
+  // since we delete the *children* of cells, we only need to start
   // considering cells on the second highest level, n_levels()-2.
-  for (unsigned int level = n_levels()-2; level>=0; --level)
+  for (int level = n_levels()-2; level>=0; --level)
     for (cell = begin(level); cell!=end(level); ++cell)
       if (cell->user_flag_set())
         // use a separate function,

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.