From 1d7b0421c9037dd59fbd889312f311ac8e62f8aa Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 23 Apr 2018 11:34:12 -0500 Subject: [PATCH] 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. --- source/lac/petsc_solver.cc | 8 ++++++++ 1 file changed, 8 insertions(+) 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)); /** -- 2.39.5