From: Markus Buerg Date: Wed, 16 Mar 2011 15:33:54 +0000 (+0000) Subject: Fix bug in hp_quad_dof_identities. X-Git-Tag: v8.0.0~4222 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea6b1c89fd430373f22656f2e3fae44df062debf;p=dealii.git Fix bug in hp_quad_dof_identities. git-svn-id: https://svn.dealii.org/trunk@23480 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/fe/fe_nedelec.cc b/deal.II/source/fe/fe_nedelec.cc index dc5bf1f1b5..36e0d18e93 100644 --- a/deal.II/source/fe/fe_nedelec.cc +++ b/deal.II/source/fe/fe_nedelec.cc @@ -2394,10 +2394,10 @@ const for (unsigned int i = 0; i < p_min; ++i) for (unsigned int j = 0; j < p_min - 1; ++j) { - identities.push_back (std::make_pair ((i + 1) * (q + 1) + j, - (i + 1) * (p + 1) + j)); - identities.push_back (std::make_pair (i + (j + q + 2) * q, - i + (j + p + 2) * p)); + identities.push_back (std::make_pair (i * (q - 1) + j, + i * (p - 1) + j)); + identities.push_back (std::make_pair (i + (j + q - 1) * q, + i + (j + p - 1) * p)); } return identities;