From 60228382168174ae51e17a5d86e7667cfe71c2e9 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Wed, 8 Sep 2010 16:07:40 +0000 Subject: [PATCH] Now really fix collective adding. git-svn-id: https://svn.dealii.org/trunk@21892 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/sparse_matrix.templates.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/deal.II/lac/include/lac/sparse_matrix.templates.h b/deal.II/lac/include/lac/sparse_matrix.templates.h index fa50806a87..c639ba0a78 100644 --- a/deal.II/lac/include/lac/sparse_matrix.templates.h +++ b/deal.II/lac/include/lac/sparse_matrix.templates.h @@ -415,7 +415,7 @@ SparseMatrix::add (const unsigned int row, const unsigned int * this_cols = &cols->get_column_numbers()[cols->get_rowstart_indices()[row]]; - const unsigned int row_length = cols->row_length(row); + const unsigned int row_length_1 = cols->row_length(row)-1; number * val_ptr = &val[cols->get_rowstart_indices()[row]]; if (cols->optimize_diagonal() == true) @@ -439,8 +439,7 @@ SparseMatrix::add (const unsigned int row, unsigned int counter = 1; for (unsigned int i=0; i::add (const unsigned int row, // add indices after diagonal for (unsigned int i=post_diag; i::add (const unsigned int row, unsigned int counter = 0; for (unsigned int i=0; i