]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Upgrade SLEPc to petsc/slepc-dev
authorToby D. Young <tyoung@ippt.pan.pl>
Tue, 6 Sep 2011 09:21:48 +0000 (09:21 +0000)
committerToby D. Young <tyoung@ippt.pan.pl>
Tue, 6 Sep 2011 09:21:48 +0000 (09:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@24261 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/slepc_solver.cc

index e87eec09bef1a0f0af5ea062c6d5a67ea8e69b8e..0979b8386191d075c56c6ce4491e3fcc5f47bf2d 100644 (file)
@@ -26,6 +26,7 @@
 #  include <vector>
 
 #  include <petscversion.h>
+#  include <slepcversion.h>
 
 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));
   }
 

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.