From: guido Date: Fri, 17 Jun 2005 10:48:57 +0000 (+0000) Subject: define static variable for all dimensions (needed by gcc 4.0.0) X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e351d47563bba3d2a9dd06155f02e18400ff932e;p=dealii-svn.git define static variable for all dimensions (needed by gcc 4.0.0) git-svn-id: https://svn.dealii.org/trunk@10880 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/deal.II/grid_out.cc b/tests/deal.II/grid_out.cc index 87fa3cccb1..297c691455 100644 --- a/tests/deal.II/grid_out.cc +++ b/tests/deal.II/grid_out.cc @@ -31,9 +31,9 @@ template void test () { Triangulation tria; + static const HyperBallBoundary x; if (dim == 2) { - static const HyperBallBoundary x; tria.set_boundary (0, x); GridGenerator::hyper_ball (tria); } diff --git a/tests/deal.II/support_point_map.cc b/tests/deal.II/support_point_map.cc index 3c509e95b8..025e1ec9ad 100644 --- a/tests/deal.II/support_point_map.cc +++ b/tests/deal.II/support_point_map.cc @@ -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(dim)),1./std::sqrt(static_cast(dim))); + static const HyperBallBoundary boundary; if (dim != 1) { - static const HyperBallBoundary boundary; tr.set_boundary (0, boundary); }; tr.refine_global (1);