From: wolf Date: Tue, 1 Feb 2000 08:39:42 +0000 (+0000) Subject: Fix one open question. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b604f7782d2234e7ddd2d4f0d08041704d6b176;p=dealii-svn.git Fix one open question. git-svn-id: https://svn.dealii.org/trunk@2300 0785d39b-7218-0410-832d-ea1e28bc413d --- 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