]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
One more bugfix
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 27 Feb 2014 10:16:44 +0000 (10:16 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 27 Feb 2014 10:16:44 +0000 (10:16 +0000)
git-svn-id: https://svn.dealii.org/trunk@32566 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/sparsity_pattern.cc

index 3efbb95cbade4585f178859b8bb828bb4d9aed00..43f4c9ffe8252a7c576e401bc7e73f1b5dbd9885 100644 (file)
@@ -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]));

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.