From d1424e68193650e52603509387faefccb2ca77d9 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 15 Apr 2017 17:12:21 +0200 Subject: [PATCH] Fix SLEPc issues reported by Coverity --- source/lac/slepc_solver.cc | 5 +++-- source/lac/slepc_spectral_transformation.cc | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/source/lac/slepc_solver.cc b/source/lac/slepc_solver.cc index 1d1142fb11..ea91456bce 100644 --- a/source/lac/slepc_solver.cc +++ b/source/lac/slepc_solver.cc @@ -37,7 +37,8 @@ namespace SLEPcWrappers const MPI_Comm &mpi_communicator) : solver_control (cn), - mpi_communicator (mpi_communicator) + mpi_communicator (mpi_communicator), + reason (EPS_CONVERGED_ITERATING) { // create eigensolver context PetscErrorCode ierr = EPSCreate (mpi_communicator, &eps); @@ -67,7 +68,7 @@ namespace SLEPcWrappers #else const PetscErrorCode ierr = EPSDestroy (&eps); #endif - AssertThrow (ierr == 0, ExcSLEPcError(ierr)); + AssertNothrow (ierr == 0, ExcSLEPcError(ierr)); } } diff --git a/source/lac/slepc_spectral_transformation.cc b/source/lac/slepc_spectral_transformation.cc index a5e10174fc..e4d8503a3b 100644 --- a/source/lac/slepc_spectral_transformation.cc +++ b/source/lac/slepc_spectral_transformation.cc @@ -42,7 +42,7 @@ namespace SLEPcWrappers if (st!=nullptr) { const PetscErrorCode ierr = STDestroy(&st); - AssertThrow (ierr == 0, SolverBase::ExcSLEPcError(ierr)); + AssertNothrow (ierr == 0, SolverBase::ExcSLEPcError(ierr)); } } -- 2.39.5