From 2087e25fe2a661fa9d4988405af69f3a6c9686c3 Mon Sep 17 00:00:00 2001
From: Florian Sonner <florian.sonner@math.fau.de>
Date: Tue, 26 Jan 2016 14:37:20 +0100
Subject: [PATCH] Fix local second-order coupling in SparseVanka

Fixes issue #2118.
---
 include/deal.II/lac/sparse_vanka.templates.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/deal.II/lac/sparse_vanka.templates.h b/include/deal.II/lac/sparse_vanka.templates.h
index 99994602cd..ed19fd4108 100644
--- a/include/deal.II/lac/sparse_vanka.templates.h
+++ b/include/deal.II/lac/sparse_vanka.templates.h
@@ -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,
-- 
2.39.5