From c13e400a8774223e9cc27368282a48fd88e82d63 Mon Sep 17 00:00:00 2001 From: young Date: Tue, 6 Sep 2011 09:21:48 +0000 Subject: [PATCH] Upgrade SLEPc to petsc/slepc-dev git-svn-id: https://svn.dealii.org/trunk@24261 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/lac/slepc_solver.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deal.II/source/lac/slepc_solver.cc b/deal.II/source/lac/slepc_solver.cc index e87eec09be..0979b83861 100644 --- a/deal.II/source/lac/slepc_solver.cc +++ b/deal.II/source/lac/slepc_solver.cc @@ -26,6 +26,7 @@ # include # include +# include DEAL_II_NAMESPACE_OPEN @@ -35,7 +36,11 @@ namespace SLEPcWrappers SolverBase::SolverData::~SolverData () { // Destroy the solver object. +#if DEAL_II_PETSC_VERSION_DEV() + int ierr = EPSDestroy (&eps); +#else int ierr = EPSDestroy (eps); +#endif AssertThrow (ierr == 0, ExcSLEPcError(ierr)); } -- 2.39.5