From 6b604f7782d2234e7ddd2d4f0d08041704d6b176 Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 1 Feb 2000 08:39:42 +0000 Subject: [PATCH] Fix one open question. git-svn-id: https://svn.dealii.org/trunk@2300 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/sparse_vanka.templates.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/deal.II/lac/include/lac/sparse_vanka.templates.h b/deal.II/lac/include/lac/sparse_vanka.templates.h index 149b4bad17..373beb5d20 100644 --- a/deal.II/lac/include/lac/sparse_vanka.templates.h +++ b/deal.II/lac/include/lac/sparse_vanka.templates.h @@ -340,9 +340,12 @@ SparseVanka::apply_preconditioner (Vector &dst, // // note that if so, we already // have copied the entry above -//TODO: why is dst accessed here??? if (js == local_index.end()) - b(i) -= matrix->raw_entry(irow,j) * dst(col); + { + if (!range_is_restricted || + ((begin <= col) && (col < end))) + b(i) -= matrix->raw_entry(irow,j) * dst(col); + } else // if so, then build the // matrix out of it -- 2.39.5