]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Slight modification to preconditioner to be petsc-3.1 compliant
authoryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 30 Mar 2010 09:15:44 +0000 (09:15 +0000)
committeryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 30 Mar 2010 09:15:44 +0000 (09:15 +0000)
git-svn-id: https://svn.dealii.org/trunk@20926 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/petsc_precondition.cc

index 7ceeae2f68b0c0983dc20c23c1066bedf6c4be2a..a136716f7d436629ed28b34184d2086a60a665c1 100644 (file)
@@ -320,8 +320,10 @@ namespace PETScWrappers
                                      // set flags as given
 #if DEAL_II_PETSC_VERSION_LT(2,3,1)
     ierr = PCLUSetPivoting (pc, additional_data.pivoting);
-#else
+#elif DEAL_II_PETSC_VERSION_LT(3,0,1)
     ierr = PCFactorSetPivoting (pc, additional_data.pivoting);
+#else
+    ierr = PCFactorSetColumnPivot (pc, additional_data.pivoting);
 #endif
     AssertThrow (ierr == 0, ExcPETScError(ierr));
 
@@ -335,8 +337,10 @@ namespace PETScWrappers
 
 #if DEAL_II_PETSC_VERSION_LT(2,3,0)
     ierr = PCLUSetDamping (pc, additional_data.damping);
-#else
+#elif DEAL_II_PETSC_VERSION_LT(3,0,1)
     ierr = PCFactorSetShiftNonzero (pc, additional_data.damping);
+#else
+    ierr = PCFactorSetShiftAmount (pc, additional_data.damping);
 #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.