]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Small clean-up.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 17 Nov 2004 04:02:46 +0000 (04:02 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 17 Nov 2004 04:02:46 +0000 (04:02 +0000)
git-svn-id: https://svn.dealii.org/trunk@9784 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/fe_q.cc

index ba186b9343c8a632b141bfe0e97354a57ae70f46..075a2121ea533005eb8c8a7c45287ef89b5ecbcd 100644 (file)
@@ -1462,13 +1462,9 @@ FE_Q<3>::initialize_constraints ()
                                            // the problem, see the discussion
                                            // in the FiniteElementBase class
                                            // for constraint matrices in 3d.
-          if (constraint_point(k) > 0.5)
-            {
-              constraint_point(k) = 1.0 - constraint_point(k);
-              mirror[k] = true;
-            }
-          else
-            mirror[k] = false;
+          mirror[k] = (constraint_point(k) > 0.5);
+          if (mirror[k])
+            constraint_point(k) = 1.0 - constraint_point(k);
         }
 
       for (unsigned i = 0; i < pnts; ++i)

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.