From: Daniel Arndt Date: Sat, 15 Apr 2017 15:12:21 +0000 (+0200) Subject: Fix SLEPc issues reported by Coverity X-Git-Tag: v9.0.0-rc1~1689^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1424e68193650e52603509387faefccb2ca77d9;p=dealii.git Fix SLEPc issues reported by Coverity --- 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)); } }