]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix bug in get_face_interpolation_matrix.
authorMarkus Buerg <buerg@math.tamu.edu>
Thu, 17 Mar 2011 19:57:18 +0000 (19:57 +0000)
committerMarkus Buerg <buerg@math.tamu.edu>
Thu, 17 Mar 2011 19:57:18 +0000 (19:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@23483 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/fe/fe_nedelec.cc

index 09fed4bf79cb43c1c93020d81a04ca74b678a2ad..d1b96aa9b51a53cf558bddcde9caecee6e267d79 100644 (file)
@@ -2491,13 +2491,14 @@ const
         for (unsigned int j = 0; j < deg; ++j)
           {
             interpolation_matrix
-              (i + (j + GeometryInfo<2>::lines_per_cell) * source_fe.degree,
-               i + (j + GeometryInfo<2>::lines_per_cell) * this->degree)
+            ((i + GeometryInfo<dim>::lines_per_face) * (source_fe.degree - 1)
+             + j + GeometryInfo<dim>::lines_per_face,
+             (i + GeometryInfo<dim>::lines_per_face) * deg + j
+             + GeometryInfo<dim>::lines_per_face)
               = 1.0;
             interpolation_matrix
-              ((i * (source_fe.degree - 1)
-               + GeometryInfo<2>::lines_per_cell) * source_fe.degree + j,
-               (i * deg + GeometryInfo<2>::lines_per_cell) * this->degree)
+            (i + (j + GeometryInfo<dim>::lines_per_face) * source_fe.degree,
+             i + (j + GeometryInfo<dim>::lines_per_face) * this->degree)
               = 1.0;
           }
       }

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.