]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add extra ifndef to disable BoomerAMG for complex-valued PETSc 2223/head
authorDenis Davydov <davydden@gmail.com>
Mon, 22 Feb 2016 12:46:50 +0000 (13:46 +0100)
committerDenis Davydov <davydden@gmail.com>
Mon, 22 Feb 2016 15:58:38 +0000 (16:58 +0100)
source/lac/petsc_precondition.cc

index 8906e0c466468fb33de89ae9a67572bbef140f53..7dd465f16ead90ab3d65093ab43377f0c674e385 100644 (file)
@@ -479,6 +479,7 @@ namespace PETScWrappers
   void
   PreconditionBoomerAMG::initialize ()
   {
+#ifndef PETSC_USE_COMPLEX
     int ierr;
     ierr = PCSetType (pc, const_cast<char *>(PCHYPRE));
     AssertThrow (ierr == 0, ExcPETScError(ierr));
@@ -517,6 +518,9 @@ namespace PETScWrappers
 
     ierr = PCSetFromOptions (pc);
     AssertThrow (ierr == 0, ExcPETScError(ierr));
+#else
+    Assert(false, ExcMessage("Complex-valued PETSc does not support BoomerAMG preconditioner."));
+#endif
   }
 
   void

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.