]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix another such bug.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 19 May 2000 15:16:05 +0000 (15:16 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 19 May 2000 15:16:05 +0000 (15:16 +0000)
git-svn-id: https://svn.dealii.org/trunk@2901 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/sparsity_pattern.cc

index 22e14002c23fe5b14c47852a172c09a3ec83dde7..cd46bdf6f6d8d27f340b21b0d9ff876f6da2e551 100644 (file)
@@ -393,14 +393,14 @@ SparsityPattern::compress ()
                                       // the only exception here is
                                       // if the row contains no
                                       // entries at all
-      Assert ((rowstart[line] == rowstart[line+1])
+      Assert ((rowstart[line] == next_row_start)
              ||
              (find (&new_colnums[rowstart[line]+1],
                     &new_colnums[next_row_start],
                     new_colnums[rowstart[line]]) ==
               &new_colnums[next_row_start]),
              ExcInternalError());
-      Assert ((rowstart[line] == rowstart[line+1])
+      Assert ((rowstart[line] == next_row_start)
              ||
              (adjacent_find(&new_colnums[rowstart[line]+1],
                             &new_colnums[next_row_start]) ==

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.