]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add check for Trilinos return value 4303/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 24 Apr 2017 16:52:29 +0000 (18:52 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 24 Apr 2017 16:52:29 +0000 (18:52 +0200)
source/lac/trilinos_epetra_vector.cc

index e60297315a0ccdb20fe0bf61d837f994c5d1f792..c44ff85cad135ae1c25c127af55a690a0eb3b68f 100644 (file)
@@ -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;
     }

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.