]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Do not mark local variables static. They are EVIL.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Feb 2007 17:29:45 +0000 (17:29 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Feb 2007 17:29:45 +0000 (17:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@14455 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/tria_accessor.cc

index a554bb5ce8a0fb55e397d16085d0829741167fcc..c10307c3522d51ce9902b5e313070d8451e23b4e 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -1636,7 +1636,7 @@ Point<3> TriaObjectAccessor<3, 3>::barycenter () const
 template <>
 double TriaObjectAccessor<3, 3>::measure () const
 {
-  static unsigned int vertex_indices[GeometryInfo<3>::vertices_per_cell];
+  unsigned int vertex_indices[GeometryInfo<3>::vertices_per_cell];
   for (unsigned int i=0; i<GeometryInfo<3>::vertices_per_cell; ++i)
     vertex_indices[i]=vertex_index(i);
 

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.