From: Martin Kronbichler Date: Thu, 27 Feb 2014 13:34:29 +0000 (+0000) Subject: Work around a bug of gcc-4.6 X-Git-Tag: v8.2.0-rc1~764 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62921f3af692c0e050ee81ed0293c83825a5fb1a;p=dealii.git Work around a bug of gcc-4.6 git-svn-id: https://svn.dealii.org/trunk@32567 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/matrix_free/inverse_mass_02.cc b/tests/matrix_free/inverse_mass_02.cc index e3efb75c44..b9f022eb64 100644 --- a/tests/matrix_free/inverse_mass_02.cc +++ b/tests/matrix_free/inverse_mass_02.cc @@ -174,7 +174,8 @@ void test () cell->set_refine_flag(); tria.execute_coarsening_and_refinement(); - FESystem fe (FE_DGQ(fe_degree), dim); + const unsigned int degree = fe_degree; + FESystem fe (FE_DGQ(degree), dim); DoFHandler dof (tria); dof.distribute_dofs(fe); diff --git a/tests/matrix_free/inverse_mass_03.cc b/tests/matrix_free/inverse_mass_03.cc index 02abac7109..512fb83060 100644 --- a/tests/matrix_free/inverse_mass_03.cc +++ b/tests/matrix_free/inverse_mass_03.cc @@ -189,7 +189,8 @@ void test () cell->set_refine_flag(); tria.execute_coarsening_and_refinement(); - FESystem fe (FE_DGQ(fe_degree),3); + const unsigned int degree = fe_degree; + FESystem fe (FE_DGQ(degree),3); DoFHandler dof (tria); dof.distribute_dofs(fe); diff --git a/tests/matrix_free/matrix_vector_16.cc b/tests/matrix_free/matrix_vector_16.cc index 5b2e37ff55..c879e7822d 100644 --- a/tests/matrix_free/matrix_vector_16.cc +++ b/tests/matrix_free/matrix_vector_16.cc @@ -201,7 +201,8 @@ void test () cell->set_refine_flag(); tria.execute_coarsening_and_refinement(); - FESystem fe(FE_Q(fe_degree), dim); + const unsigned int degree = fe_degree; + FESystem fe(FE_Q(degree), dim); DoFHandler dof (tria); dof.distribute_dofs(fe); ConstraintMatrix constraints;