]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix bug 1265/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 5 Aug 2015 08:47:01 +0000 (10:47 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 5 Aug 2015 08:47:01 +0000 (10:47 +0200)
include/deal.II/lac/trilinos_sparse_matrix.h

index bfc51149a1eb2942e4181133dffb8c73281540a7..e47e8f513ead5bb684f89a00663d241eb897ea75 100644 (file)
@@ -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();

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.