]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove a PETSc compatibility thing.
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 18 Apr 2023 16:40:04 +0000 (10:40 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 18 Apr 2023 16:40:04 +0000 (10:40 -0600)
include/deal.II/lac/petsc_compatibility.h

index 8d84fa6dfdc4e2f0b03fa5912093d84aaf799662..400903540bf0fac53a548eb07d799e47a2d60d1f 100644 (file)
@@ -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));
   }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.