From: bangerth Date: Fri, 1 Sep 2006 18:37:23 +0000 (+0000) Subject: Slightly simplify a bit of code. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bb14b1abcfa832708bb3f8c066843415f22f0b2;p=dealii-svn.git Slightly simplify a bit of code. git-svn-id: https://svn.dealii.org/trunk@13791 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/dofs/dof_tools.cc b/deal.II/deal.II/source/dofs/dof_tools.cc index d7a231fb65..fb1829ec15 100644 --- a/deal.II/deal.II/source/dofs/dof_tools.cc +++ b/deal.II/deal.II/source/dofs/dof_tools.cc @@ -1590,24 +1590,22 @@ namespace internal for (unsigned int col=0; col!=n_dofs_child; ++col) { - bool constrain = true; - - // Check if we have a constraint, - // which is already satisfied. - for (unsigned int i=0; i!=n_dofs_mother; ++i) - { - // Check for a value of - // 1.0 - if (face_constraints (i,col) == 1.0) - constrain = (dofs_mother[i] != dofs_child[col]); - } - - // If this constraint is not - // automatically satisfied by - // the previous step of removing - // equivalent DoFs, add this - // constraint. - if (constrain) + bool constraint_already_satisfied = false; + + // Check if we have an identity + // constraint, which is already + // satisfied by unification of + // the corresponding global dof + // indices + for (unsigned int i=0; i