]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix local second-order coupling in SparseVanka
authorFlorian Sonner <florian.sonner@math.fau.de>
Tue, 26 Jan 2016 13:37:20 +0000 (14:37 +0100)
committerFlorian Sonner <florian.sonner@math.fau.de>
Tue, 26 Jan 2016 14:01:20 +0000 (15:01 +0100)
Fixes issue #2118.

include/deal.II/lac/sparse_vanka.templates.h

index 99994602cd30849df655858a37e332c8ae6a080b..ed19fd4108dd79c486ca5a747f46a614feadb6a6 100644 (file)
@@ -335,8 +335,8 @@ SparseVanka<number>::apply_preconditioner (Vector<number2>         &dst,
             // couples with
             // number of DoFs coupling to
             // irow (including irow itself)
-            for (typename SparseMatrix<number>::const_iterator p=matrix->begin(row);
-                 p != matrix->end(row); ++p)
+            for (typename SparseMatrix<number>::const_iterator p=matrix->begin(irow);
+                 p != matrix->end(irow); ++p)
               {
                 // find out whether this DoF
                 // (that couples with @p irow,

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.