From: Wolfgang Bangerth Date: Tue, 1 Feb 2000 08:39:42 +0000 (+0000) Subject: Fix one open question. X-Git-Tag: v8.0.0~21060 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd7fc3d171b4d8feb913587c1b1e57def04ff707;p=dealii.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