]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix an ugly bug. Wonder how this could have escaped us until now...
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Nov 1999 08:04:30 +0000 (08:04 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Nov 1999 08:04:30 +0000 (08:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@1864 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/sparse_matrix.cc

index 134a7b77e914fa410c8a9e7d840344a96aa5bcf4..4ae7652adb9cf37af15e4cc3d46ffc7a1f62e0a0 100644 (file)
@@ -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];
 };
 
 

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.