]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Update check for PETSC_VERSION
authoryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 5 Sep 2011 09:19:15 +0000 (09:19 +0000)
committeryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 5 Sep 2011 09:19:15 +0000 (09:19 +0000)
git-svn-id: https://svn.dealii.org/trunk@24249 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/petsc_vector.h

index 894d8155b388af75ead8ff0c1032f79813b28fa0..f04ae3a316fcc0aac5227bebf4854c7c07b89011 100644 (file)
@@ -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));

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.