From 47cd0fd2ecc75dc416cfbf805aca48ae20f24e25 Mon Sep 17 00:00:00 2001 From: guido Date: Wed, 16 Apr 2003 16:38:10 +0000 Subject: [PATCH] Advance iterator over empty rows git-svn-id: https://svn.dealii.org/trunk@7403 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/sparse_matrix_ez.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deal.II/lac/include/lac/sparse_matrix_ez.h b/deal.II/lac/include/lac/sparse_matrix_ez.h index e501c8f2f4..0437a59ae7 100644 --- a/deal.II/lac/include/lac/sparse_matrix_ez.h +++ b/deal.II/lac/include/lac/sparse_matrix_ez.h @@ -1164,7 +1164,12 @@ SparseMatrixEZ::const_iterator::operator++ () if (accessor.a_index >= accessor.matrix->row_info[accessor.a_row].length) { accessor.a_index = 0; - accessor.a_row++; + do + { + ++accessor.a_row; + } + while (accessor.a_row < accessor.matrix->m() + && accessor.column() == SparseMatrixEZ::Entry::invalid); } return *this; } -- 2.39.5