]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Check some Trilinos errors. 5607/head
authorDavid Wells <wellsd2@rpi.edu>
Sat, 9 Dec 2017 18:03:32 +0000 (13:03 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 9 Dec 2017 19:09:44 +0000 (14:09 -0500)
source/lac/trilinos_sparse_matrix.cc

index b4730994b2cc1e977db5cc922427b6b81667d477..2daa3598b2ac31e94aded9469d7d44588251d741 100644 (file)
@@ -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

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.