From: kronbichler Date: Thu, 27 Feb 2014 13:34:29 +0000 (+0000) Subject: Work around a bug of gcc-4.6 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a85bd3e83d85829cc7f3dde7a46c693640beff17;p=dealii-svn.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;