]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Merge pull request #14660 from bangerth/array
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 10 Jan 2023 21:54:49 +0000 (16:54 -0500)
committerGitHub <noreply@github.com>
Tue, 10 Jan 2023 21:54:49 +0000 (16:54 -0500)
1  2 
include/deal.II/base/data_out_base.h

index d69807980319ccd9e0d77b404038817a32a4d53b,cbd8f40841c61c0b08bff28ebecfeca83aee4b29..da5e5bb3af3c69fe0d1a8088585bbd78e9f089a3
@@@ -281,13 -281,8 +281,13 @@@ namespace DataOutBas
       *
       * The order of points is the same as for cells in the
       * triangulation.
 +     *
 +     * @note This array is sized to accommodate the maximal number of vertices
 +     *   one might encounter in a cell, namely those for a hypercube cell.
 +     *   For other kinds of cells (triangles, tetrahedra, etc.), only the
 +     *   first few elements of this array will be used.
       */
-     Point<spacedim> vertices[GeometryInfo<dim>::vertices_per_cell];
+     std::array<Point<spacedim>, GeometryInfo<dim>::vertices_per_cell> vertices;
  
      /**
       * Patch indices of neighbors of the current patch. This is made available

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.