From: Wolfgang Bangerth Date: Tue, 18 Apr 2023 16:40:04 +0000 (-0600) Subject: Remove a PETSc compatibility thing. X-Git-Tag: v9.5.0-rc1~314^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8ab29116079d5572241bc93876c20bdbfb4461d;p=dealii.git Remove a PETSc compatibility thing. --- 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)); }