]> https://gitweb.dealii.org/ - dealii.git/commitdiff
More descriptive name.
authorLuca Heltai <luca.heltai@sissa.it>
Thu, 21 Mar 2019 23:46:04 +0000 (00:46 +0100)
committerLuca Heltai <luca.heltai@sissa.it>
Sat, 23 Mar 2019 22:24:17 +0000 (23:24 +0100)
source/grid/grid_tools.cc

index 32c252689d235b2f9de7c604e5e1d37851a3a8e2..10f5dd627244fabd73387eb19d11a0088de7e7ad 100644 (file)
@@ -3768,11 +3768,11 @@ namespace GridTools
     // Easy case first:
     if (dim == 1)
       return;
-    const unsigned int size =
+    const unsigned int n_subobjects =
       dim == 2 ? tria.n_lines() : tria.n_lines() + tria.n_quads();
 
     // If user index is zero, then it has not been set.
-    std::vector<std::set<types::manifold_id>> manifold_ids(size + 1);
+    std::vector<std::set<types::manifold_id>> manifold_ids(n_subobjects + 1);
     std::vector<unsigned int>                 backup;
     tria.save_user_indices(backup);
     tria.clear_user_data();
@@ -3785,7 +3785,7 @@ namespace GridTools
             {
               if (cell->line(l)->user_index() == 0)
                 {
-                  AssertIndexRange(next_index, size + 1);
+                  AssertIndexRange(next_index, n_subobjects + 1);
                   manifold_ids[next_index].insert(cell->manifold_id());
                   cell->line(l)->set_user_index(next_index++);
                 }
@@ -3798,7 +3798,7 @@ namespace GridTools
             {
               if (cell->quad(l)->user_index() == 0)
                 {
-                  AssertIndexRange(next_index, size + 1);
+                  AssertIndexRange(next_index, n_subobjects + 1);
                   manifold_ids[next_index].insert(cell->manifold_id());
                   cell->quad(l)->set_user_index(next_index++);
                 }

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.