From b8ab29116079d5572241bc93876c20bdbfb4461d Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 18 Apr 2023 10:40:04 -0600 Subject: [PATCH] Remove a PETSc compatibility thing. --- include/deal.II/lac/petsc_compatibility.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/include/deal.II/lac/petsc_compatibility.h b/include/deal.II/lac/petsc_compatibility.h index 8d84fa6dfd..400903540b 100644 --- a/include/deal.II/lac/petsc_compatibility.h +++ b/include/deal.II/lac/petsc_compatibility.h @@ -39,19 +39,13 @@ namespace PETScWrappers { /** * Set an option in the global PETSc database. This function just wraps - * PetscOptionsSetValue with a version check (the signature of this function - * changed in PETSc 3.7.0). + * PetscOptionsSetValue and checks the error return value. */ inline void set_option_value(const std::string &name, const std::string &value) { -# if DEAL_II_PETSC_VERSION_LT(3, 7, 0) - const PetscErrorCode ierr = - PetscOptionsSetValue(name.c_str(), value.c_str()); -# else const PetscErrorCode ierr = PetscOptionsSetValue(nullptr, name.c_str(), value.c_str()); -# endif AssertThrow(ierr == 0, ExcPETScError(ierr)); } -- 2.39.5