]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix bug in Jacobi preconditioning.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 6 Jul 1998 07:51:06 +0000 (07:51 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 6 Jul 1998 07:51:06 +0000 (07:51 +0000)
git-svn-id: https://svn.dealii.org/trunk@436 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/dsmatrix.cc

index 32ce7ee08b3e009cd34f8cfe7b5ac4a9ba129b37..39ebf5e612b6d5e54a5734887769f1ea3dcbb263 100644 (file)
@@ -578,7 +578,7 @@ dSMatrix::precondition_Jacobi (dVector& dst, const dVector& src,
                                     // the diagonal entry is the first
                                     // in each row, i.e. at index
                                     // rowstart[i]
-    dst(i) = om * src(i) * val[cols->rowstart[i]];
+    dst(i) = om * src(i) / val[cols->rowstart[i]];
 };
 
 

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.