From 5980012517eecdd5322f133a79f498cd5ad81175 Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 17 Nov 1999 08:04:30 +0000 Subject: [PATCH] Fix an ugly bug. Wonder how this could have escaped us until now... git-svn-id: https://svn.dealii.org/trunk@1864 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/source/sparse_matrix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deal.II/lac/source/sparse_matrix.cc b/deal.II/lac/source/sparse_matrix.cc index 134a7b77e9..4ae7652adb 100644 --- a/deal.II/lac/source/sparse_matrix.cc +++ b/deal.II/lac/source/sparse_matrix.cc @@ -551,7 +551,7 @@ unsigned int SparseMatrixStruct::n_nonzero_elements () const { Assert ((rowstart!=0) && (colnums!=0), ExcEmptyObject()); Assert (compressed, ExcNotCompressed()); - return colnums[rows]-colnums[0]; + return rowstart[rows]-rowstart[0]; }; -- 2.39.5