From: Daniel Arndt Date: Fri, 17 Mar 2017 11:06:40 +0000 (+0100) Subject: Check return value of Trilinos functions in trilinos_vector_base.h X-Git-Tag: v8.5.0-rc1~29^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47d7ac29eb1c96200e4261310d7d3645018f82e1;p=dealii.git Check return value of Trilinos functions in trilinos_vector_base.h --- diff --git a/include/deal.II/lac/trilinos_vector_base.h b/include/deal.II/lac/trilinos_vector_base.h index 5b88511d96..a97e48f8a0 100644 --- a/include/deal.II/lac/trilinos_vector_base.h +++ b/include/deal.II/lac/trilinos_vector_base.h @@ -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; }