From 36d763b51be3c7d36fcf2459a3a1502aa038d35e Mon Sep 17 00:00:00 2001 From: hartmann Date: Tue, 8 Jun 2004 11:43:51 +0000 Subject: [PATCH] Add assertion. git-svn-id: https://svn.dealii.org/trunk@9410 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/source/petsc_parallel_sparse_matrix.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/deal.II/lac/source/petsc_parallel_sparse_matrix.cc b/deal.II/lac/source/petsc_parallel_sparse_matrix.cc index 81c6e0261b..433d5e469b 100644 --- a/deal.II/lac/source/petsc_parallel_sparse_matrix.cc +++ b/deal.II/lac/source/petsc_parallel_sparse_matrix.cc @@ -201,6 +201,16 @@ namespace PETScWrappers Assert (row_lengths.size() == m, ExcDimensionMismatch (row_lengths.size(), m)); + + // For the case that + // local_columns is smaller + // than one of the row lengths + // MatCreateMPIAIJ throughs an + // error. In this case use a + // PETScWrappers::SparseMatrix + for (unsigned int i=0; i