From: Toby D. Young Date: Sat, 29 Oct 2011 12:39:09 +0000 (+0000) Subject: Modify wrappers to run with latest slepc v3.2 X-Git-Tag: v8.0.0~3174 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8dc96774b714cbc38c6f882d751642a57ad680f;p=dealii.git Modify wrappers to run with latest slepc v3.2 git-svn-id: https://svn.dealii.org/trunk@24687 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/lac/slepc_solver.cc b/deal.II/source/lac/slepc_solver.cc index 97e33ab3c9..79a5d6d072 100644 --- a/deal.II/source/lac/slepc_solver.cc +++ b/deal.II/source/lac/slepc_solver.cc @@ -36,10 +36,10 @@ namespace SLEPcWrappers SolverBase::SolverData::~SolverData () { // Destroy the solver object. -#if DEAL_II_PETSC_VERSION_DEV() - int ierr = EPSDestroy (&eps); -#else +#if DEAL_II_PETSC_VERSION_LT(3,2,0) int ierr = EPSDestroy (eps); +#else + int ierr = EPSDestroy (&eps); #endif AssertThrow (ierr == 0, ExcSLEPcError(ierr)); }