From bfd97b3051a7036e3876006971368a64ed2e2445 Mon Sep 17 00:00:00 2001 From: hartmann Date: Tue, 17 May 2005 17:41:28 +0000 Subject: [PATCH] Make vector static instead of recreating it again and again. git-svn-id: https://svn.dealii.org/trunk@10689 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/grid/geometry_info.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.), -- 2.39.5