]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Improve an error message. 12935/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 11 Nov 2021 22:06:02 +0000 (15:06 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 11 Nov 2021 22:06:02 +0000 (15:06 -0700)
source/lac/trilinos_sparse_matrix.cc

index 1b20186c533e25ed353a82ccb399c75f75463087..9c898a787e29ed76b1b33763e2aabc991110ef65 100644 (file)
@@ -1956,10 +1956,17 @@ namespace TrilinosWrappers
                                 const TrilinosWrappers::MPI::Vector &out)
       {
         Assert(in.trilinos_partitioner().SameAs(m.DomainMap()) == true,
-               ExcMessage(
-                 "Column map of matrix does not fit with vector map!"));
+               ExcMessage("The column partitioning of a matrix does not match "
+                          "the partitioning of a vector you are trying to "
+                          "multiply it with. Are you multiplying the "
+                          "matrix with a vector that has ghost elements?"));
         Assert(out.trilinos_partitioner().SameAs(m.RangeMap()) == true,
-               ExcMessage("Row map of matrix does not fit with vector map!"));
+               ExcMessage("The row partitioning of a matrix does not match "
+                          "the partitioning of a vector you are trying to "
+                          "put the result of a matrix-vector product in. "
+                          "Are you trying to put the product of the "
+                          "matrix with a vector into a vector that has "
+                          "ghost elements?"));
         (void)m;
         (void)in;
         (void)out;

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.