]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Update docs for a statement one of my students just stumbled over. 739/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 6 Apr 2015 15:38:44 +0000 (10:38 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 6 Apr 2015 15:38:44 +0000 (10:38 -0500)
examples/step-49/step-49.cc

index 592cafc54cfc08051667201bc450e19517c104b0..456205758fd22a14841d3f9d73711f15603db01c 100644 (file)
@@ -65,8 +65,11 @@ void mesh_info(const Triangulation<dim> &tria,
             << " dimension: " << dim << std::endl
             << " no. of cells: " << tria.n_active_cells() << std::endl;
 
-  // Next loop over all faces of all cells and find how often each boundary
-  // indicator is used:
+  // Next loop over all faces of all cells and find how often each
+  // boundary indicator is used (recall that if you access an element
+  // of a std::map object that doesn't exist, it is implicitly created
+  // and default initialized -- to zero, in the current case -- before
+  // we then increment it):
   {
     std::map<unsigned int, unsigned int> boundary_count;
     typename Triangulation<dim>::active_cell_iterator

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.