From 545f5e7a230df92b450492205582ab0c124ee3d9 Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 10 Aug 2005 14:20:31 +0000 Subject: [PATCH] Actually, the offending change in petsc seems to have been between 2.2.0 and 2.2.1... git-svn-id: https://svn.dealii.org/trunk@11272 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/source/petsc_matrix_base.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/deal.II/lac/source/petsc_matrix_base.cc b/deal.II/lac/source/petsc_matrix_base.cc index 4d903051f0..888e7c398d 100644 --- a/deal.II/lac/source/petsc_matrix_base.cc +++ b/deal.II/lac/source/petsc_matrix_base.cc @@ -205,7 +205,9 @@ namespace PETScWrappers // now set all the entries of this row to // zero IS index_set; -#if (PETSC_VERSION_MAJOR <= 2) && (PETSC_VERSION_MINOR <= 2) +#if (PETSC_VERSION_MAJOR <= 2) && \ + ((PETSC_VERSION_MINOR < 2) || \ + ((PETSC_VERSION_MINOR == 2) && (PETSC_VERSION_SUBMINOR == 0))) const int petsc_row = row; #else const PetscInt petsc_row = row; @@ -231,7 +233,9 @@ namespace PETScWrappers // now set all the entries of these rows // to zero IS index_set; -#if (PETSC_VERSION_MAJOR <= 2) && (PETSC_VERSION_MINOR <= 2) +#if (PETSC_VERSION_MAJOR <= 2) && \ + ((PETSC_VERSION_MINOR < 2) || \ + ((PETSC_VERSION_MINOR == 2) && (PETSC_VERSION_SUBMINOR == 0))) const std::vector petsc_rows (rows.begin(), rows.end()); #else const std::vector petsc_rows (rows.begin(), rows.end()); -- 2.39.5