From: Wolfgang Bangerth Date: Thu, 25 Feb 2010 15:46:34 +0000 (+0000) Subject: Use new macro to simplify things. X-Git-Tag: v8.0.0~6403 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e267275b03d1ecbe18af6c8c28c28442f18afca;p=dealii.git Use new macro to simplify things. git-svn-id: https://svn.dealii.org/trunk@20694 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/petsc_solver.cc b/deal.II/lac/source/petsc_solver.cc index 94ec618415..b8e2b7ceb8 100644 --- a/deal.II/lac/source/petsc_solver.cc +++ b/deal.II/lac/source/petsc_solver.cc @@ -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