From: Marc Fehling Date: Mon, 17 Jun 2024 15:35:44 +0000 (+0200) Subject: Enhance an assertion message. X-Git-Tag: v9.6.0-rc1~184^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17129%2Fhead;p=dealii.git Enhance an assertion message. --- diff --git a/include/deal.II/lac/trilinos_sparsity_pattern.h b/include/deal.II/lac/trilinos_sparsity_pattern.h index 80d952a1e9..65bc3ad3cb 100644 --- a/include/deal.II/lac/trilinos_sparsity_pattern.h +++ b/include/deal.II/lac/trilinos_sparsity_pattern.h @@ -22,6 +22,7 @@ # include # include # include +# include # include # include @@ -1277,9 +1278,10 @@ namespace TrilinosWrappers // thread-safety) Assert(nonlocal_graph->RowMap().LID( static_cast(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);