From: young <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Date: Mon, 5 Sep 2011 09:19:15 +0000 (+0000)
Subject: Update check for PETSC_VERSION
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff70ab9cc2aec47c478054ac120169449fccc424;p=dealii-svn.git

Update check for PETSC_VERSION

git-svn-id: https://svn.dealii.org/trunk@24249 0785d39b-7218-0410-832d-ea1e28bc413d
---

diff --git a/deal.II/include/deal.II/lac/petsc_vector.h b/deal.II/include/deal.II/lac/petsc_vector.h
index 894d8155b3..f04ae3a316 100644
--- a/deal.II/include/deal.II/lac/petsc_vector.h
+++ b/deal.II/include/deal.II/lac/petsc_vector.h
@@ -296,9 +296,7 @@ namespace PETScWrappers
                                      // are hard to understand. gets me all
                                      // annoyed at their development
                                      // model</rant>
-#if (PETSC_VERSION_MAJOR <= 2) && \
-    ((PETSC_VERSION_MINOR < 2) ||  \
-     ((PETSC_VERSION_MINOR == 2) && (PETSC_VERSION_SUBMINOR == 0)))
+#if DEAL_II_PETSC_VERSION_LT(2,2,0)
     ierr = VecConvertMPIToSeqAll (static_cast<const Vec &>(v),
                                   &vector);
     AssertThrow (ierr == 0, ExcPETScError(ierr));