From 3893e85ec38b8a2c43409c168688ff4a6a445454 Mon Sep 17 00:00:00 2001 From: bangerth Date: Tue, 15 Jan 2013 20:47:00 +0000 Subject: [PATCH] Fix off-by-one error in previous commit. git-svn-id: https://svn.dealii.org/trunk@28071 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/sparse_matrix.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deal.II/include/deal.II/lac/sparse_matrix.h b/deal.II/include/deal.II/lac/sparse_matrix.h index f006bc055e..f2498fb6ec 100644 --- a/deal.II/include/deal.II/lac/sparse_matrix.h +++ b/deal.II/include/deal.II/lac/sparse_matrix.h @@ -2243,14 +2243,14 @@ namespace SparseMatrixIterators ? sparsity.get_rowstart_indices()[(*this)->row()] + (*this)->index() : - sparsity.get_rowstart_indices()[sparsity.n_rows()+1]); + sparsity.get_rowstart_indices()[sparsity.n_rows()]); const unsigned int other_position = (other != (*this)->get_matrix().end() ? sparsity.get_rowstart_indices()[other->row()] + other->index() : - sparsity.get_rowstart_indices()[sparsity.n_rows()+1]); + sparsity.get_rowstart_indices()[sparsity.n_rows()]); return (this_position - other_position); } -- 2.39.5