From: David Wells Date: Sat, 9 Dec 2017 18:03:32 +0000 (-0500) Subject: Check some Trilinos errors. X-Git-Tag: v9.0.0-rc1~671^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5607%2Fhead;p=dealii.git Check some Trilinos errors. --- 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