]> https://gitweb.dealii.org/ - dealii.git/commitdiff
PETSc: Port to version 3.9.0
authorMatthias Maier <tamiko@43-1.org>
Mon, 23 Apr 2018 16:34:12 +0000 (11:34 -0500)
committerMatthias Maier <tamiko@43-1.org>
Mon, 23 Apr 2018 16:39:18 +0000 (11:39 -0500)
In version 3.9.0 *SolverPackage was renamed to *SolverType. Guard the
two instances where we call such functions.

source/lac/petsc_solver.cc

index 0c60ecb0581dbfc60baa01e9a8114d5a1353080f..173d574973b2a19bc02ea7da4995b1e88fffecbf 100644 (file)
@@ -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));
 
         /**

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.