]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use new macro to simplify things.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 25 Feb 2010 15:46:34 +0000 (15:46 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 25 Feb 2010 15:46:34 +0000 (15:46 +0000)
git-svn-id: https://svn.dealii.org/trunk@20694 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/petsc_solver.cc

index 94ec618415787ad664bf37286ec0d09961af5f84..b8e2b7ceb89228de6268ddd638f5a9e85928e35f 100644 (file)
@@ -39,7 +39,7 @@ namespace PETScWrappers
 
                                      // and destroy the solver object if we
                                      // are in old PETSc mode
-#if (PETSC_VERSION_MAJOR == 2) && (PETSC_VERSION_MINOR < 2)
+#if DEAL_II_PETSC_VERSION_LT(2,2,0)
     ierr = SLESDestroy (sles);
     AssertThrow (ierr == 0, ExcPETScError(ierr));
 #endif

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.