]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Improve documentation of Triangulation 7011/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 1 Aug 2018 18:14:37 +0000 (20:14 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 1 Aug 2018 18:28:31 +0000 (20:28 +0200)
include/deal.II/grid/tria.h

index e69f67210a2e4df2580fd25b16a690a02482557a..bbba7634625ee9cd0e257ae5c1e5ea5b95b44d7d 100644 (file)
@@ -572,7 +572,8 @@ namespace internal
  * <li> <em>Counting the number of cells on a specific level</em>
  *    @code
  *      template <int dim, int spacedim>
- *      int Triangulation<dim, spacedim>::n_cells (const int level) const
+ *      unsigned int
+ *      Triangulation<dim, spacedim>::n_cells (const int level) const
  *      {
  *        int n=0;
  *        for (const auto &cell : cell_iterators_on_level(level))
@@ -583,7 +584,8 @@ namespace internal
  * Another way, which uses <tt>std::distance</tt>, would be to write
  *    @code
  *      template <int dim>
- *      int Triangulation<dim>::n_cells (const int level) const
+ *      unsigned int
+ *      Triangulation<dim>::n_cells (const int level) const
  *      {
  *        int n=0;
  *        distance (begin(level),

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.