From: Wolfgang Bangerth Date: Fri, 21 May 2004 20:29:40 +0000 (+0000) Subject: Fix a stupid oversight. X-Git-Tag: v8.0.0~15150 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a2d3bdd3460f63ebb4ee42dac597c49287b6165;p=dealii.git Fix a stupid oversight. git-svn-id: https://svn.dealii.org/trunk@9286 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));