]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Actually, the offending change in petsc seems to have been between
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Aug 2005 14:20:31 +0000 (14:20 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Aug 2005 14:20:31 +0000 (14:20 +0000)
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

index 4d903051f0259291b5495d73d546dc6a87edec76..888e7c398d06aa1d12912ed26a7aa1be4e828a34 100644 (file)
@@ -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<int>      petsc_rows (rows.begin(), rows.end());
 #else
     const std::vector<PetscInt> petsc_rows (rows.begin(), rows.end());

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.