]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
function end(row) fixed
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 18 Apr 2003 19:45:53 +0000 (19:45 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 18 Apr 2003 19:45:53 +0000 (19:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@7410 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/sparse_matrix_ez.h

index 5e447a518f69cdd02bb301bb5766c30ed26a7e56..18d8b92580f7116594ea365ad7143f28926f5b19 100644 (file)
@@ -1477,7 +1477,10 @@ typename SparseMatrixEZ<number>::const_iterator
 SparseMatrixEZ<number>::end (const unsigned int r) const
 {
   Assert (r<m(), ExcIndexRange(r,0,m()));
-  return const_iterator(this, r+1, 0);
+  const_iterator result(this, r+1, 0);
+  if (row_info[r+1].length == 0)
+    ++result;
+  return result;
 }
 
 template<typename number>

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.