From 9e4758b1d014b4d5394bf4fe6e1309a03ad87227 Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Thu, 17 Jul 2014 12:19:04 +0000 Subject: [PATCH] Fixed another call to KSPSetOperators git-svn-id: https://svn.dealii.org/trunk@33188 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/lac/petsc_solver.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deal.II/source/lac/petsc_solver.cc b/deal.II/source/lac/petsc_solver.cc index 80f71535c5..0993a27cf8 100644 --- a/deal.II/source/lac/petsc_solver.cc +++ b/deal.II/source/lac/petsc_solver.cc @@ -702,8 +702,12 @@ namespace PETScWrappers * set the matrices involved. the last argument is irrelevant here, * since we use the solver only once anyway */ +#if DEAL_II_PETSC_VERSION_LT(3, 5, 0) ierr = KSPSetOperators (solver_data->ksp, A, A, DIFFERENT_NONZERO_PATTERN); +#else + ierr = KSPSetOperators (solver_data->ksp, A, A); +#endif AssertThrow (ierr == 0, ExcPETScError(ierr)); /** -- 2.39.5