]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix SLEPc issues reported by Coverity 4262/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 15 Apr 2017 15:12:21 +0000 (17:12 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 15 Apr 2017 15:12:21 +0000 (17:12 +0200)
source/lac/slepc_solver.cc
source/lac/slepc_spectral_transformation.cc

index 1d1142fb11be1ceda99812b4edfd68fe36f1e734..ea91456bce363dc4568c8c6c27a95a196f03c14b 100644 (file)
@@ -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));
       }
   }
 
index a5e10174fc464fb2a3ccfc5817bc2db61a4d7b9f..e4d8503a3b7c3e8e12017b35726d10f18401a925 100644 (file)
@@ -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));
       }
   }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.