From: Martin Kronbichler Date: Wed, 5 Aug 2015 08:47:01 +0000 (+0200) Subject: Fix bug X-Git-Tag: v8.4.0-rc2~674^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1265%2Fhead;p=dealii.git Fix bug --- diff --git a/include/deal.II/lac/trilinos_sparse_matrix.h b/include/deal.II/lac/trilinos_sparse_matrix.h index bfc51149a1..e47e8f513e 100644 --- a/include/deal.II/lac/trilinos_sparse_matrix.h +++ b/include/deal.II/lac/trilinos_sparse_matrix.h @@ -2551,6 +2551,9 @@ namespace TrilinosWrappers SparseMatrix::size_type SparseMatrix::n () const { + // If the matrix structure has not been fixed (i.e., we did not have a + // sparsity pattern), it does not know about the number of columns so we + // must always take this from the additional column space map Assert(column_space_map.get() != 0, ExcInternalError()); #ifndef DEAL_II_WITH_64BIT_INDICES return column_space_map->NumGlobalElements();