]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Modify wrappers to run with latest slepc v3.2
authoryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 29 Oct 2011 12:39:09 +0000 (12:39 +0000)
committeryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 29 Oct 2011 12:39:09 +0000 (12:39 +0000)
git-svn-id: https://svn.dealii.org/trunk@24687 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/slepc_solver.cc

index 97e33ab3c9fd411f63b437cc9680572f9db18bee..79a5d6d072c0205fc4269bc5a28621c24634822c 100644 (file)
@@ -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));
   }

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.