From: Daniel Arndt Date: Mon, 24 Apr 2017 16:52:29 +0000 (+0200) Subject: Add check for Trilinos return value X-Git-Tag: v9.0.0-rc1~1658^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4303%2Fhead;p=dealii.git Add check for Trilinos return value --- 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; }