]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Minor performance improvement. 14997/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 30 Mar 2023 17:52:08 +0000 (11:52 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 30 Mar 2023 17:52:08 +0000 (11:52 -0600)
include/deal.II/grid/cell_id_translator.h

index 9ed01cbfe12b08cd24744dc651376f376e7eb33d..84ee3338d6ccd1e4e5a6005e16013b25c9060e71 100644 (file)
@@ -158,6 +158,7 @@ namespace internal
 #endif
 
     // Now do the whole computation again, but for real:
+    tree_sizes.reserve(n_global_levels + 1);
     tree_sizes.push_back(0);
     for (unsigned int i = 0; i < n_global_levels; ++i)
       tree_sizes.push_back(tree_sizes.back() +

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.