]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Enhance an assertion message. 17129/head
authorMarc Fehling <mafehling.git@gmail.com>
Mon, 17 Jun 2024 15:35:44 +0000 (17:35 +0200)
committerMarc Fehling <mafehling.git@gmail.com>
Mon, 17 Jun 2024 15:36:34 +0000 (17:36 +0200)
include/deal.II/lac/trilinos_sparsity_pattern.h

index 80d952a1e90e8609f90c3a4d370a8a7be761f878..65bc3ad3cbdcaa8d60b6896b6f27dec0f4fcb73d 100644 (file)
@@ -22,6 +22,7 @@
 #  include <deal.II/base/index_set.h>
 #  include <deal.II/base/mpi_stub.h>
 #  include <deal.II/base/subscriptor.h>
+#  include <deal.II/base/utilities.h>
 
 #  include <deal.II/lac/exceptions.h>
 #  include <deal.II/lac/sparsity_pattern_base.h>
@@ -1277,9 +1278,10 @@ namespace TrilinosWrappers
         // thread-safety)
         Assert(nonlocal_graph->RowMap().LID(
                  static_cast<TrilinosWrappers::types::int_type>(row)) != -1,
-               ExcMessage("Attempted to write into off-processor matrix row "
-                          "that has not be specified as being writable upon "
-                          "initialization"));
+               ExcMessage("Attempted to write into off-processor matrix row " +
+                          Utilities::to_string(row) +
+                          " that has not been specified as being writable upon "
+                          "initialization."));
         ierr = nonlocal_graph->InsertGlobalIndices(trilinos_row_index,
                                                    n_cols,
                                                    col_index_ptr);

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.