From ff70ab9cc2aec47c478054ac120169449fccc424 Mon Sep 17 00:00:00 2001 From: young Date: Mon, 5 Sep 2011 09:19:15 +0000 Subject: [PATCH] Update check for PETSC_VERSION git-svn-id: https://svn.dealii.org/trunk@24249 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/petsc_vector.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 -#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(v), &vector); AssertThrow (ierr == 0, ExcPETScError(ierr)); -- 2.39.5