]> https://gitweb.dealii.org/ - dealii.git/commitdiff
GridGenerator: initialize with numbers::invalid_unsigned_int. 18429/head
authorDavid Wells <drwells@email.unc.edu>
Tue, 6 May 2025 21:32:46 +0000 (17:32 -0400)
committerDavid Wells <drwells@email.unc.edu>
Tue, 6 May 2025 21:32:46 +0000 (17:32 -0400)
source/grid/grid_generator.cc

index 44be1c3b8224f52da3926eb8349fc51934ea2045..6e4b6a050ef56ba3d5442856caa80ec6645b5d65 100644 (file)
@@ -8164,6 +8164,7 @@ namespace GridGenerator
         // temporary array storing the global indices of each cell entity in the
         // sequence: vertices, edges/faces, cell
         std::array<unsigned int, dim == 2 ? 9 : 14> local_vertex_indices;
+        local_vertex_indices.fill(numbers::invalid_unsigned_int);
 
         // (i) copy the existing vertex locations
         for (const auto v : cell->vertex_indices())

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.