]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Work around a bug of gcc-4.6
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 27 Feb 2014 13:34:29 +0000 (13:34 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 27 Feb 2014 13:34:29 +0000 (13:34 +0000)
git-svn-id: https://svn.dealii.org/trunk@32567 0785d39b-7218-0410-832d-ea1e28bc413d

tests/matrix_free/inverse_mass_02.cc
tests/matrix_free/inverse_mass_03.cc
tests/matrix_free/matrix_vector_16.cc

index e3efb75c44da9990446574be97cfa7f9ce09ae89..b9f022eb648851f42846ad4db0f497387f6f5b0d 100644 (file)
@@ -174,7 +174,8 @@ void test ()
       cell->set_refine_flag();
   tria.execute_coarsening_and_refinement();
 
-  FESystem<dim> fe (FE_DGQ<dim>(fe_degree), dim);
+  const unsigned int degree = fe_degree;
+  FESystem<dim> fe (FE_DGQ<dim>(degree), dim);
   DoFHandler<dim> dof (tria);
   dof.distribute_dofs(fe);
 
index 02abac7109c06f9b30bd9bc99e7de0107dd87b1b..512fb8306043b8f103ac80e2218e8093e48768b5 100644 (file)
@@ -189,7 +189,8 @@ void test ()
       cell->set_refine_flag();
   tria.execute_coarsening_and_refinement();
 
-  FESystem<dim> fe (FE_DGQ<dim>(fe_degree),3);
+  const unsigned int degree = fe_degree;
+  FESystem<dim> fe (FE_DGQ<dim>(degree),3);
   DoFHandler<dim> dof (tria);
   dof.distribute_dofs(fe);
 
index 5b2e37ff556d76fe8893e5dfc830523c1a6c5f96..c879e7822dff703fab647c9839faa0fef6a618be 100644 (file)
@@ -201,7 +201,8 @@ void test ()
       cell->set_refine_flag();
   tria.execute_coarsening_and_refinement();
 
-  FESystem<dim> fe(FE_Q<dim>(fe_degree), dim);
+  const unsigned int degree = fe_degree;
+  FESystem<dim> fe(FE_Q<dim>(degree), dim);
   DoFHandler<dim> dof (tria);
   dof.distribute_dofs(fe);
   ConstraintMatrix constraints;

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.