From: heltai Date: Thu, 17 Jul 2014 12:19:04 +0000 (+0000) Subject: Fixed another call to KSPSetOperators X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7b8305ea944e63c90e47a8a710a467c44270d75;p=dealii-svn.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)); /**