From d058bdbd71e133019385edfa464604a750355270 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 30 May 2014 19:20:20 +0000 Subject: [PATCH] Make one statement also compile with PETSc versions before 3.2. git-svn-id: https://svn.dealii.org/trunk@32990 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/lac/petsc_solver.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deal.II/source/lac/petsc_solver.cc b/deal.II/source/lac/petsc_solver.cc index 4524e91c37..d9c95f30a4 100644 --- a/deal.II/source/lac/petsc_solver.cc +++ b/deal.II/source/lac/petsc_solver.cc @@ -1,7 +1,7 @@ // --------------------------------------------------------------------- // $Id$ // -// Copyright (C) 2004 - 2013 by the deal.II authors +// Copyright (C) 2004 - 2014 by the deal.II authors // // This file is part of the deal.II library. // @@ -736,7 +736,11 @@ namespace PETScWrappers * factorization here we start to see differences with the base * class solve function */ +#if DEAL_II_PETSC_VERSION_GTE(3,2,0) ierr = PCFactorSetMatSolverPackage (solver_data->pc, MATSOLVERMUMPS); +#else + ierr = PCFactorSetMatSolverPackage (solver_data->pc, MAT_SOLVER_MUMPS); +#endif AssertThrow (ierr == 0, ExcPETScError (ierr)); /** -- 2.39.5