]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix a stupid oversight.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 21 May 2004 20:28:21 +0000 (20:28 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 21 May 2004 20:28:21 +0000 (20:28 +0000)
git-svn-id: https://svn.dealii.org/branches/Branch-5-0@9285 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.