From: young Date: Tue, 30 Mar 2010 09:15:44 +0000 (+0000) Subject: Slight modification to preconditioner to be petsc-3.1 compliant X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72e65291bf724c0dc72ac9f837ebf033f0040c44;p=dealii-svn.git Slight modification to preconditioner to be petsc-3.1 compliant git-svn-id: https://svn.dealii.org/trunk@20926 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/petsc_precondition.cc b/deal.II/lac/source/petsc_precondition.cc index 7ceeae2f68..a136716f7d 100644 --- a/deal.II/lac/source/petsc_precondition.cc +++ b/deal.II/lac/source/petsc_precondition.cc @@ -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));