From: wolf Date: Fri, 21 May 2004 20:28:21 +0000 (+0000) Subject: Fix a stupid oversight. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b74bdd6221122337f8118502ee69178bb704dbb;p=dealii-svn.git Fix a stupid oversight. git-svn-id: https://svn.dealii.org/branches/Branch-5-0@9285 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/petsc_parallel_sparse_matrix.cc b/deal.II/lac/source/petsc_parallel_sparse_matrix.cc index c596fbe0a6..cb5048b0f3 100644 --- a/deal.II/lac/source/petsc_parallel_sparse_matrix.cc +++ b/deal.II/lac/source/petsc_parallel_sparse_matrix.cc @@ -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 &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));