From dd7a9670598aa50639bccbb4fed330df1b93b44b Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 1 Aug 2018 20:14:37 +0200 Subject: [PATCH] Improve documentation of Triangulation --- include/deal.II/grid/tria.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/deal.II/grid/tria.h b/include/deal.II/grid/tria.h index e69f67210a..bbba763462 100644 --- a/include/deal.II/grid/tria.h +++ b/include/deal.II/grid/tria.h @@ -572,7 +572,8 @@ namespace internal *
  • Counting the number of cells on a specific level * @code * template - * int Triangulation::n_cells (const int level) const + * unsigned int + * Triangulation::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 std::distance, would be to write * @code * template - * int Triangulation::n_cells (const int level) const + * unsigned int + * Triangulation::n_cells (const int level) const * { * int n=0; * distance (begin(level), -- 2.39.5