From c0c24818801bbd35a74f0d67e9b4345e20bbf985 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Mon, 7 Mar 2016 11:33:45 +0100 Subject: [PATCH] add missing Asserts in is_symmetric() and is_hermitian() --- source/lac/petsc_matrix_base.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; } -- 2.39.5