From: hartmann Date: Tue, 17 May 2005 17:41:28 +0000 (+0000) Subject: Make vector static instead of recreating it again and again. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfd97b3051a7036e3876006971368a64ed2e2445;p=dealii-svn.git Make vector static instead of recreating it again and again. git-svn-id: https://svn.dealii.org/trunk@10689 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/grid/geometry_info.h b/deal.II/deal.II/include/grid/geometry_info.h index c4c75c342d..8fe33f278a 100644 --- a/deal.II/deal.II/include/grid/geometry_info.h +++ b/deal.II/deal.II/include/grid/geometry_info.h @@ -531,7 +531,7 @@ GeometryInfo<1>::unit_cell_vertex (const unsigned int vertex) Assert (vertex < vertices_per_cell, ExcIndexRange (vertex, 0, vertices_per_cell)); - const Point<1> vertices[vertices_per_cell] = + static const Point<1> vertices[vertices_per_cell] = { Point<1>(0.), Point<1>(1.) }; return vertices[vertex]; } @@ -546,7 +546,7 @@ GeometryInfo<2>::unit_cell_vertex (const unsigned int vertex) Assert (vertex < vertices_per_cell, ExcIndexRange (vertex, 0, vertices_per_cell)); - const Point<2> vertices[vertices_per_cell] = + static const Point<2> vertices[vertices_per_cell] = { Point<2>(0., 0.), Point<2>(1., 0.), Point<2>(1.,1.), Point<2>(0.,1.) }; return vertices[vertex]; @@ -562,7 +562,7 @@ GeometryInfo<3>::unit_cell_vertex (const unsigned int vertex) Assert (vertex < vertices_per_cell, ExcIndexRange (vertex, 0, vertices_per_cell)); - const Point<3> vertices[vertices_per_cell] = + static const Point<3> vertices[vertices_per_cell] = { Point<3>(0., 0., 0.), Point<3>(1., 0., 0.), Point<3>(1., 0., 1.), Point<3>(0., 0., 1.), Point<3>(0., 1., 0.), Point<3>(1., 1., 0.),