]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add an assertion.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Aug 2008 18:12:24 +0000 (18:12 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Aug 2008 18:12:24 +0000 (18:12 +0000)
git-svn-id: https://svn.dealii.org/trunk@16677 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/trilinos_sparse_matrix.cc

index 0dd2f390a80d17ac50c913ec81c17092392cf2ca..0c4b9ccdbfa402f40d9ad843f17b0e37784e23eb 100755 (executable)
@@ -692,6 +692,8 @@ namespace TrilinosWrappers
   SparseMatrix &
   SparseMatrix::operator /= (const TrilinosScalar a)
   {
+    Assert (a !=0, ExcDivideByZero());
+
     const TrilinosScalar factor = 1./a;
 
     const int ierr = matrix->Scale (factor);

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.