From: Wolfgang Bangerth Date: Tue, 18 Apr 2023 16:42:27 +0000 (-0600) Subject: Remove another PETSc compatibility issue we no longer need. X-Git-Tag: v9.5.0-rc1~314^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15109%2Fhead;p=dealii.git 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. --- 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)); }