]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix one open question.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 1 Feb 2000 08:39:42 +0000 (08:39 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 1 Feb 2000 08:39:42 +0000 (08:39 +0000)
git-svn-id: https://svn.dealii.org/trunk@2300 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/sparse_vanka.templates.h

index 149b4bad1705293b61ec709d17f5dc030ed57385..373beb5d2085f15b462e9c229d8c4c3c3da7b710 100644 (file)
@@ -340,9 +340,12 @@ SparseVanka<number>::apply_preconditioner (Vector<number2>       &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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.