From 0eb71e36ac238b5ab7438787d7ccf102c72d6e47 Mon Sep 17 00:00:00 2001 From: guido Date: Mon, 13 Jun 2005 12:52:50 +0000 Subject: [PATCH] Create static variable for any dimension (required by gcc 4.0.0) git-svn-id: https://svn.dealii.org/trunk@10862 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/deal.II/boundaries.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/deal.II/boundaries.cc b/tests/deal.II/boundaries.cc index 346af22cdb..6a2a32158f 100644 --- a/tests/deal.II/boundaries.cc +++ b/tests/deal.II/boundaries.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 @@ -91,11 +91,11 @@ 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); tr.begin_active()->set_refine_flag (); tr.execute_coarsening_and_refinement (); -- 2.39.5