]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
define static variable for all dimensions (needed by gcc 4.0.0)
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Jun 2005 10:48:57 +0000 (10:48 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Jun 2005 10:48:57 +0000 (10:48 +0000)
git-svn-id: https://svn.dealii.org/trunk@10880 0785d39b-7218-0410-832d-ea1e28bc413d

tests/deal.II/grid_out.cc
tests/deal.II/support_point_map.cc

index 87fa3cccb116c6e0ed0fe6b204021bcf8595c9ce..297c6914556671bc2ef91ff80e180528c89b62b8 100644 (file)
@@ -31,9 +31,9 @@ template <int dim>
 void test ()
 {  
   Triangulation<dim> tria;
+  static const HyperBallBoundary<dim> x;
   if (dim == 2)
     {
-      static const HyperBallBoundary<dim> x;
       tria.set_boundary (0, x);
       GridGenerator::hyper_ball (tria);
     }
index 3c509e95b85a0e14e7a60eec311b67f0163d30c5..025e1ec9adafa74180e96624faed45bb9d459201 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2000, 2001, 2003, 2004 by the deal.II authors
+//    Copyright (C) 2000, 2001, 2003, 2004, 2005 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -87,9 +87,9 @@ check ()
     }
   else
     GridGenerator::hyper_cube(tr, -1./std::sqrt(static_cast<double>(dim)),1./std::sqrt(static_cast<double>(dim)));
+  static const HyperBallBoundary<dim> boundary;
   if (dim != 1)
     {
-      static const HyperBallBoundary<dim> boundary;
       tr.set_boundary (0, boundary);
     };
   tr.refine_global (1);

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.