Skip to content

Commit

Permalink
Merge pull request dealii#17129 from marcfehling/verbose-trilinos
Browse files Browse the repository at this point in the history
Enhance an assertion message.
  • Loading branch information
kronbichler authored Jun 18, 2024
2 parents 88506f9 + 9e484b7 commit 174525f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions include/deal.II/lac/trilinos_sparsity_pattern.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 174525f

Please sign in to comment.