From: young Date: Tue, 6 Sep 2011 09:21:48 +0000 (+0000) Subject: Upgrade SLEPc to petsc/slepc-dev X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c13e400a8774223e9cc27368282a48fd88e82d63;p=dealii-svn.git Upgrade SLEPc to petsc/slepc-dev git-svn-id: https://svn.dealii.org/trunk@24261 0785d39b-7218-0410-832d-ea1e28bc413d --- 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)); }