]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make vector static instead of recreating it again and again.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 17 May 2005 17:41:28 +0000 (17:41 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 17 May 2005 17:41:28 +0000 (17:41 +0000)
git-svn-id: https://svn.dealii.org/trunk@10689 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/grid/geometry_info.h

index c4c75c342d2be27646a0bc9bb5fa8e51280587e3..8fe33f278a4a2403256016f0f7cd10c9c2c66eea 100644 (file)
@@ -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.),

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.