From 186be7e85c462f466bcf2ecff8d0f89cae0acac1 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 8 Jul 1998 12:56:44 +0000 Subject: [PATCH] Implement performance tweeks for Jacobi preconditioning. git-svn-id: https://svn.dealii.org/trunk@440 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/source/dsmatrix.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/deal.II/lac/source/dsmatrix.cc b/deal.II/lac/source/dsmatrix.cc index 100f9f3a9e..e1c2da1bff 100644 --- a/deal.II/lac/source/dsmatrix.cc +++ b/deal.II/lac/source/dsmatrix.cc @@ -572,13 +572,16 @@ dSMatrix::precondition_Jacobi (dVector& dst, const dVector& src, Assert (m() == n(), ExcMatrixNotSquare()); const unsigned int n = src.size(); - - for (unsigned int i=0; irowstart[0]; + + for (unsigned int i=0; irowstart[i]]; + *dst_ptr = om * *src_ptr / val[*rowstart_ptr]; }; -- 2.39.5