From: Florian Sonner Date: Tue, 26 Jan 2016 13:37:20 +0000 (+0100) Subject: Fix local second-order coupling in SparseVanka X-Git-Tag: v8.4.0-rc2~49^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2087e25fe2a661fa9d4988405af69f3a6c9686c3;p=dealii.git Fix local second-order coupling in SparseVanka Fixes issue #2118. --- 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::apply_preconditioner (Vector &dst, // couples with // number of DoFs coupling to // irow (including irow itself) - for (typename SparseMatrix::const_iterator p=matrix->begin(row); - p != matrix->end(row); ++p) + for (typename SparseMatrix::const_iterator p=matrix->begin(irow); + p != matrix->end(irow); ++p) { // find out whether this DoF // (that couples with @p irow,