From bf570c0371e6894c05865616869fc5343b7e03ed Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 9 Dec 2017 13:03:32 -0500 Subject: [PATCH] Check some Trilinos errors. --- source/lac/trilinos_sparse_matrix.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/lac/trilinos_sparse_matrix.cc b/source/lac/trilinos_sparse_matrix.cc index b4730994b2..2daa3598b2 100644 --- a/source/lac/trilinos_sparse_matrix.cc +++ b/source/lac/trilinos_sparse_matrix.cc @@ -1624,6 +1624,7 @@ namespace TrilinosWrappers ierr = matrix->Epetra_CrsMatrix::SumIntoGlobalValues(row, n_columns, col_value_ptr, col_index_ptr); + AssertThrow (ierr == 0, ExcTrilinosError(ierr)); } else if (nonlocal_matrix.get() != nullptr) { @@ -1638,6 +1639,7 @@ namespace TrilinosWrappers ierr = nonlocal_matrix->SumIntoGlobalValues(row, n_columns, col_value_ptr, col_index_ptr); + AssertThrow (ierr == 0, ExcTrilinosError(ierr)); } else { @@ -1654,6 +1656,7 @@ namespace TrilinosWrappers col_index_ptr, &col_value_ptr, Epetra_FECrsMatrix::ROW_MAJOR); + AssertThrow (ierr == 0, ExcTrilinosError(ierr)); } #ifdef DEBUG -- 2.39.5