From: Matthias Maier <tamiko@43-1.org>
Date: Mon, 23 Apr 2018 16:34:12 +0000 (-0500)
Subject: PETSc: Port to version 3.9.0
X-Git-Tag: v9.0.0-rc1~135^2~2
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d7b0421c9037dd59fbd889312f311ac8e62f8aa;p=dealii.git

PETSc: Port to version 3.9.0

In version 3.9.0 *SolverPackage was renamed to *SolverType. Guard the
two instances where we call such functions.
---

diff --git a/source/lac/petsc_solver.cc b/source/lac/petsc_solver.cc
index 0c60ecb058..173d574973 100644
--- a/source/lac/petsc_solver.cc
+++ b/source/lac/petsc_solver.cc
@@ -755,13 +755,21 @@ namespace PETScWrappers
          * factorization here we start to see differences with the base
          * class solve function
          */
+#if DEAL_II_PETSC_VERSION_LT(3, 9, 0)
         ierr = PCFactorSetMatSolverPackage (solver_data->pc, MATSOLVERMUMPS);
+#else
+        ierr = PCFactorSetMatSolverType (solver_data->pc, MATSOLVERMUMPS);
+#endif
         AssertThrow (ierr == 0, ExcPETScError (ierr));
 
         /**
          * set up the package to call for the factorization
          */
+#if DEAL_II_PETSC_VERSION_LT(3, 9, 0)
         ierr = PCFactorSetUpMatSolverPackage (solver_data->pc);
+#else
+        ierr = PCFactorSetUpMatSolverType (solver_data->pc);
+#endif
         AssertThrow (ierr == 0, ExcPETScError(ierr));
 
         /**