From d836ee3a31d94f0617fc890aa943ae4b613b428a Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 18 Apr 2023 10:42:27 -0600 Subject: [PATCH] Remove another PETSc compatibility issue we no longer need. We currently require PETSc 3.7 or later, so no need to support pre-3.5 versions. --- source/lac/petsc_precondition.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/source/lac/petsc_precondition.cc b/source/lac/petsc_precondition.cc index cc2ed27fe5..1a7701a7e5 100644 --- a/source/lac/petsc_precondition.cc +++ b/source/lac/petsc_precondition.cc @@ -114,11 +114,7 @@ namespace PETScWrappers create_pc_with_comm(comm); -# if DEAL_II_PETSC_VERSION_LT(3, 5, 0) - ierr = PCSetOperators(pc, matrix, matrix, SAME_PRECONDITIONER); -# else ierr = PCSetOperators(pc, matrix, matrix); -# endif AssertThrow(ierr == 0, ExcPETScError(ierr)); } @@ -1098,11 +1094,7 @@ namespace PETScWrappers { initialize(matrix.get_mpi_communicator()); PetscErrorCode ierr; -# if DEAL_II_PETSC_VERSION_LT(3, 5, 0) - ierr = PCSetOperators(pc, matrix, matrix, DIFFERENT_NONZERO_PATTERN); -# else ierr = PCSetOperators(pc, matrix, matrix); -# endif AssertThrow(ierr == 0, ExcPETScError(ierr)); } -- 2.39.5