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=refs%2Fpull%2F16609%2Fhead;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