From: Wolfgang Bangerth Date: Thu, 8 Feb 2024 18:15:08 +0000 (-0700) Subject: Fix 64-bit compilation with old PETSc versions. X-Git-Tag: relicensing~60^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bb03abe50b0bc80b75904fd5031a2076d707a3d;p=dealii.git Fix 64-bit compilation with old PETSc versions. --- diff --git a/source/lac/petsc_communication_pattern.cc b/source/lac/petsc_communication_pattern.cc index 563a1d2bef..19ff745bbe 100644 --- a/source/lac/petsc_communication_pattern.cc +++ b/source/lac/petsc_communication_pattern.cc @@ -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