]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix 64-bit compilation with old PETSc versions. 16609/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 8 Feb 2024 18:15:08 +0000 (11:15 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 9 Feb 2024 00:45:33 +0000 (17:45 -0700)
source/lac/petsc_communication_pattern.cc

index 563a1d2bef130d89017859d82d8722f17dbd597f..19ff745bbead62b1c1621fa41906e890194fb414 100644 (file)
@@ -204,8 +204,12 @@ namespace PETScWrappers
     const PetscInt *ranges;
     AssertPETSc(PetscLayoutGetRanges(layout, &ranges));
 
-    PetscInt    cnt   = 0;
+    PetscInt cnt = 0;
+#  if DEAL_II_PETSC_VERSION_GTE(3, 13, 0)
     PetscMPIInt owner = 0;
+#  else
+    PetscInt owner = 0;
+#  endif
     for (const auto idx : inidx)
       {
         // short-circuit the search if the last owner owns this index too

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.