]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix off-by-one error in previous commit.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 15 Jan 2013 20:47:00 +0000 (20:47 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 15 Jan 2013 20:47:00 +0000 (20:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@28071 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/sparse_matrix.h

index f006bc055e2a2f90d8e0d494b992dfc04694e27c..f2498fb6ecb5d8d78a9e2fb5fcafe2343e4d14e8 100644 (file)
@@ -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);
   }

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.