From: Toby D. Young Date: Sat, 5 Oct 2013 16:08:10 +0000 (+0000) Subject: Switch Assert to AssertThrow where a PETScInternalError can occur. X-Git-Tag: v8.1.0~630 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b6accdf6f729212fd66b99cd9b8d6a609be5d1f;p=dealii.git Switch Assert to AssertThrow where a PETScInternalError can occur. git-svn-id: https://svn.dealii.org/trunk@31149 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/lac/petsc_matrix_base.h b/deal.II/include/deal.II/lac/petsc_matrix_base.h index 8a64919480..8d0ed3179e 100644 --- a/deal.II/include/deal.II/lac/petsc_matrix_base.h +++ b/deal.II/include/deal.II/lac/petsc_matrix_base.h @@ -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)); }