From: Luca Heltai Date: Thu, 17 Jul 2014 12:19:04 +0000 (+0000) Subject: Fixed another call to KSPSetOperators X-Git-Tag: v8.2.0-rc1~285 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e4758b1d014b4d5394bf4fe6e1309a03ad87227;p=dealii.git Fixed another call to KSPSetOperators git-svn-id: https://svn.dealii.org/trunk@33188 0785d39b-7218-0410-832d-ea1e28bc413d --- 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)); /**