]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix bug in hp_quad_dof_identities.
authorMarkus Buerg <buerg@math.tamu.edu>
Wed, 16 Mar 2011 15:33:54 +0000 (15:33 +0000)
committerMarkus Buerg <buerg@math.tamu.edu>
Wed, 16 Mar 2011 15:33:54 +0000 (15:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@23480 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/fe/fe_nedelec.cc

index dc5bf1f1b558e0349cc0a1e7e6f451c441f8d907..36e0d18e93e7ad5fb60bbcd5763c814ff038bfcc 100644 (file)
@@ -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;

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.