]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fixed another call to KSPSetOperators
authorheltai <heltai@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 17 Jul 2014 12:19:04 +0000 (12:19 +0000)
committerheltai <heltai@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 17 Jul 2014 12:19:04 +0000 (12:19 +0000)
git-svn-id: https://svn.dealii.org/trunk@33188 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/petsc_solver.cc

index 80f71535c5f99c6798d25668f0fbdb442b65d1aa..0993a27cf860a80d0cad7d7855047e3d11b009fc 100644 (file)
@@ -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));
 
         /**

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.