AssertThrow (ierr == 0, ExcPETScError(ierr));
// then set flags
-#if (PETSC_VERSION_MAJOR >= 2) && (PETSC_VERSION_MINOR >= 3) && (PETSC_VERSION_SUBMINOR >= 1)
- PCFactorSetLevels (pc, additional_data.levels);
-#else
+#if (PETSC_VERSION_MAJOR >= 2) && (PETSC_VERSION_MINOR < 3) && (PETSC_VERSION_SUBMINOR < 1)
PCICCSetLevels (pc, additional_data.levels);
+#else
+ PCFactorSetLevels (pc, additional_data.levels);
#endif
AssertThrow (ierr == 0, ExcPETScError(ierr));
AssertThrow (ierr == 0, ExcPETScError(ierr));
// then set flags
-#if (PETSC_VERSION_MAJOR >= 2) && (PETSC_VERSION_MINOR >= 3) && (PETSC_VERSION_SUBMINOR >= 1)
- PCFactorSetLevels (pc, additional_data.levels);
-#else
+#if (PETSC_VERSION_MAJOR >= 2) && (PETSC_VERSION_MINOR < 3) && (PETSC_VERSION_SUBMINOR < 1)
PCILUSetLevels (pc, additional_data.levels);
+#else
+ PCFactorSetLevels (pc, additional_data.levels);
#endif
AssertThrow (ierr == 0, ExcPETScError(ierr));
// set flags as given
#if (PETSC_VERSION_MAJOR >= 2) && (PETSC_VERSION_MINOR >= 3) && (PETSC_VERSION_SUBMINOR >= 1)
- ierr = PCFactorSetPivoting (pc, additional_data.pivoting);
-#else
ierr = PCLUSetPivoting (pc, additional_data.pivoting);
+#else
+ ierr = PCFactorSetPivoting (pc, additional_data.pivoting);
#endif
AssertThrow (ierr == 0, ExcPETScError(ierr));
-#if (PETSC_VERSION_MAJOR <= 2) && (PETSC_VERSION_MINOR < 3)
+#if (PETSC_VERSION_MAJOR >= 2) && (PETSC_VERSION_MINOR < 3)
ierr = PCLUSetZeroPivot (pc, additional_data.zero_pivot);
#else
ierr = PCFactorSetZeroPivot (pc, additional_data.zero_pivot);
AssertThrow (ierr == 0, ExcPETScError(ierr));
-#if (PETSC_VERSION_MAJOR <= 2) && (PETSC_VERSION_MINOR < 3)
+#if (PETSC_VERSION_MAJOR >= 2) && (PETSC_VERSION_MINOR < 3)
ierr = PCLUSetDamping (pc, additional_data.damping);
#else
ierr = PCFactorSetShiftNonzero (pc, additional_data.damping);