From 0bb03abe50b0bc80b75904fd5031a2076d707a3d Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 8 Feb 2024 11:15:08 -0700 Subject: [PATCH] Fix 64-bit compilation with old PETSc versions. --- source/lac/petsc_communication_pattern.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.5