From: hartmann Date: Tue, 8 Jun 2004 11:43:51 +0000 (+0000) Subject: Add assertion. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36d763b51be3c7d36fcf2459a3a1502aa038d35e;p=dealii-svn.git Add assertion. git-svn-id: https://svn.dealii.org/trunk@9410 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 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