]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Switch Assert to AssertThrow where a PETScInternalError can occur.
authoryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 5 Oct 2013 16:08:10 +0000 (16:08 +0000)
committeryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 5 Oct 2013 16:08:10 +0000 (16:08 +0000)
git-svn-id: https://svn.dealii.org/trunk@31149 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/petsc_matrix_base.h

index 8a649194801c4ad3ef5238a8269a0f01125a551c..8d0ed3179e42325560f15337ef5c7f8de479e90d 100644 (file)
@@ -1789,7 +1789,7 @@ namespace PETScWrappers
     const int ierr
       = MatSetValues (matrix, 1, &petsc_i, n_columns, col_index_ptr,
                       col_value_ptr, ADD_VALUES);
-    Assert (ierr == 0, ExcPETScError(ierr));
+    AssertThrow (ierr == 0, ExcPETScError(ierr));
   }
 
 

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.