]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Check return value of Trilinos functions in trilinos_vector_base.h 4078/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 17 Mar 2017 11:06:40 +0000 (12:06 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 17 Mar 2017 11:07:14 +0000 (12:07 +0100)
include/deal.II/lac/trilinos_vector_base.h

index 5b88511d9660b3d997f3b8c8748f13de254e016b..a97e48f8a0cc398bac68f7b8416c1109a77284e9 100644 (file)
@@ -1361,7 +1361,10 @@ namespace TrilinosWrappers
     if (last_action != Add)
       {
         if (last_action == Insert)
-          vector->GlobalAssemble(Insert);
+          {
+            const int ierr = vector->GlobalAssemble(Insert);
+            AssertThrow (ierr == 0, ExcTrilinosError(ierr));
+          }
         last_action = Add;
       }
 

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.