From: Martin Kronbichler Date: Thu, 27 Feb 2014 10:16:44 +0000 (+0000) Subject: One more bugfix X-Git-Tag: v8.2.0-rc1~765 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19cd116aff25cad5fbc844b28afe3bd0f9bcb077;p=dealii.git One more bugfix git-svn-id: https://svn.dealii.org/trunk@32566 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/lac/sparsity_pattern.cc b/deal.II/source/lac/sparsity_pattern.cc index 3efbb95cba..43f4c9ffe8 100644 --- a/deal.II/source/lac/sparsity_pattern.cc +++ b/deal.II/source/lac/sparsity_pattern.cc @@ -802,7 +802,7 @@ SparsityPattern::add_entries (const size_type row, if (has_larger_entries == false) for ( ; it != end; ++it) { - if (*it == row) + if (store_diagonal_first_in_row && *it == row) continue; Assert (k <= rowstart[row+1], ExcNotEnoughSpace(row, rowstart[row+1]-rowstart[row]));