]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Simplify one case
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 1 Sep 2006 18:04:24 +0000 (18:04 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 1 Sep 2006 18:04:24 +0000 (18:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@13788 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/fe_system.cc

index 0509aad8ec9c5a493879eef34236112f96f1069a..96a41e1e31151309922e53bf40d66369a6be5ca5 100644 (file)
@@ -2325,8 +2325,10 @@ FESystem<dim>::multiply_dof_numbers (const FiniteElementData<dim> &fe1,
                           fe2.dofs_per_hex * N2 +
                           fe3.dofs_per_hex * N3);
                                   // degree is the maximal degree of the components
-  unsigned int degree = std::max(fe1.tensor_degree(), fe2.tensor_degree());
-  degree = std::max(degree, fe3.tensor_degree());
+  const unsigned int
+    degree = std::max (std::max(fe1.tensor_degree(),
+                               fe2.tensor_degree()),
+                      fe3.tensor_degree());
   return FiniteElementData<dim> (
     dpo,
     fe1.n_components() * N1 + fe2.n_components() * N2 + fe3.n_components() * N3,

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.