]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Create static variable for any dimension (required by gcc 4.0.0)
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 13 Jun 2005 12:52:50 +0000 (12:52 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 13 Jun 2005 12:52:50 +0000 (12:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@10862 0785d39b-7218-0410-832d-ea1e28bc413d

tests/deal.II/boundaries.cc

index 346af22cdb784dc348bc028435f7da91cc515943..6a2a32158f4a54e154c8789de519a6decd04db43 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
@@ -91,11 +91,11 @@ 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);
   tr.begin_active()->set_refine_flag ();
   tr.execute_coarsening_and_refinement ();

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.