From: Denis Davydov Date: Mon, 7 Mar 2016 10:33:45 +0000 (+0100) Subject: add missing Asserts in is_symmetric() and is_hermitian() X-Git-Tag: v8.5.0-rc1~1241^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0c24818801bbd35a74f0d67e9b4345e20bbf985;p=dealii.git add missing Asserts in is_symmetric() and is_hermitian() --- diff --git a/source/lac/petsc_matrix_base.cc b/source/lac/petsc_matrix_base.cc index 7f5b0d78d3..cea675dfb9 100644 --- a/source/lac/petsc_matrix_base.cc +++ b/source/lac/petsc_matrix_base.cc @@ -578,7 +578,9 @@ namespace PETScWrappers #endif truth; assert_is_compressed (); - MatIsSymmetric (matrix, tolerance, &truth); + int ierr = MatIsSymmetric (matrix, tolerance, &truth); + (void)ierr; + AssertThrow (ierr == 0, ExcPETScError(ierr)); return truth; } @@ -597,7 +599,9 @@ namespace PETScWrappers truth; assert_is_compressed (); - MatIsHermitian (matrix, tolerance, &truth); + int ierr = MatIsHermitian (matrix, tolerance, &truth); + (void)ierr; + AssertThrow (ierr == 0, ExcPETScError(ierr)); return truth; }