]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a stupid oversight.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 21 May 2004 20:29:40 +0000 (20:29 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 21 May 2004 20:29:40 +0000 (20:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@9286 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/petsc_parallel_sparse_matrix.cc

index c596fbe0a6ffb1b1a1245fa2232343962abc311e..cb5048b0f3b1175cfa795f4c2aa01435c298e6b5 100644 (file)
@@ -121,7 +121,7 @@ namespace PETScWrappers
                              const unsigned int n_nonzero_per_row,
                              const bool         is_symmetric)
     {
-      Assert (local_rows < m, ExcLocalRowsTooLarge (local_rows, m));
+      Assert (local_rows <= m, ExcLocalRowsTooLarge (local_rows, m));
       
                                        // use the call sequence indicating only
                                        // a maximal number of elements per row
@@ -159,7 +159,7 @@ namespace PETScWrappers
                              const std::vector<unsigned int> &row_lengths,
                              const bool         is_symmetric)
     {
-      Assert (local_rows < m, ExcLocalRowsTooLarge (local_rows, m));
+      Assert (local_rows <= m, ExcLocalRowsTooLarge (local_rows, m));
 
       Assert (row_lengths.size() == m,
               ExcDimensionMismatch (row_lengths.size(), m));

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.