From 5fdc0a610d7b60ad794f4200910f081e40204dda Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 24 Apr 2017 18:52:29 +0200 Subject: [PATCH] Add check for Trilinos return value --- source/lac/trilinos_epetra_vector.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/lac/trilinos_epetra_vector.cc b/source/lac/trilinos_epetra_vector.cc index e60297315a..c44ff85cad 100644 --- a/source/lac/trilinos_epetra_vector.cc +++ b/source/lac/trilinos_epetra_vector.cc @@ -120,7 +120,10 @@ namespace LinearAlgebra Vector &Vector::operator= (const double s) { Assert(s==0., ExcMessage("Only 0 can be assigned to a vector.")); - vector->PutScalar(s); + + const int ierr = vector->PutScalar(s); + Assert(ierr == 0, ExcTrilinosError(ierr)); + (void) ierr; return *this; } -- 2.39.5