From 4a2d3bdd3460f63ebb4ee42dac597c49287b6165 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 21 May 2004 20:29:40 +0000 Subject: [PATCH] Fix a stupid oversight. git-svn-id: https://svn.dealii.org/trunk@9286 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/source/petsc_parallel_sparse_matrix.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); -- 2.39.5