]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Improved support for PETSc 2.3.1+later versions.
authorprill <prill@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 4 Aug 2006 11:25:41 +0000 (11:25 +0000)
committerprill <prill@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 4 Aug 2006 11:25:41 +0000 (11:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@13594 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/news/changes.html
deal.II/lac/source/petsc_precondition.cc

index bd1b167ac5face00f975b7709e2141793c04879a..a4426aee0d03cf3c213ef333d9765068d104d36f 100644 (file)
@@ -577,6 +577,12 @@ inconvenience this causes.
 
 <ol>
 
+  <li> <p> Improved: PETSc 2.3.1 (<i>build 16</i>) is now supported by the
+       linear preconditioner classes. The new PETSc functions 
+       <code class="member">PCFactorSetXXX</code> are used.<br>       
+       (F. Prill, 2006/08/04)
+       </p>
+
   <li> <p>New: The class <code class="class">TransposeMatrix</code>
   modeled after <code class="class">PointerMatrix</code> swaps the
   <code class="member">vmult</code> functions such that its effect is
index ed3705cd70a4da6de5dba21304c71ba1d32866ee..34d7c3a2b1360ad48d11333941e3067b32a45584 100644 (file)
@@ -218,7 +218,7 @@ namespace PETScWrappers
     AssertThrow (ierr == 0, ExcPETScError(ierr));
 
                                      // then set flags
-#if (PETSC_VERSION_MAJOR == 2) && (PETSC_VERSION_MINOR == 3) && (PETSC_VERSION_SUBMINOR == 1)
+#if (PETSC_VERSION_MAJOR >= 2) && (PETSC_VERSION_MINOR >= 3) && (PETSC_VERSION_SUBMINOR >= 1)
     PCFactorSetLevels (pc, additional_data.levels);
 #else
     PCICCSetLevels (pc, additional_data.levels);
@@ -255,7 +255,7 @@ namespace PETScWrappers
     AssertThrow (ierr == 0, ExcPETScError(ierr));
 
                                      // then set flags
-#if (PETSC_VERSION_MAJOR == 2) && (PETSC_VERSION_MINOR == 3) && (PETSC_VERSION_SUBMINOR == 1)
+#if (PETSC_VERSION_MAJOR >= 2) && (PETSC_VERSION_MINOR >= 3) && (PETSC_VERSION_SUBMINOR >= 1)
     PCFactorSetLevels (pc, additional_data.levels);
 #else
     PCILUSetLevels (pc, additional_data.levels);  
@@ -296,7 +296,7 @@ namespace PETScWrappers
     AssertThrow (ierr == 0, ExcPETScError(ierr));
 
                                      // set flags as given
-#if (PETSC_VERSION_MAJOR == 2) && (PETSC_VERSION_MINOR == 3) && (PETSC_VERSION_SUBMINOR == 1)
+#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);

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.