]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compilation with PETSc and not hypre. 2762/head
authorDavid Wells <wellsd2@rpi.edu>
Thu, 7 Jul 2016 13:36:20 +0000 (09:36 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Thu, 7 Jul 2016 13:36:20 +0000 (09:36 -0400)
source/lac/petsc_precondition.cc

index 96bd524b527e92fb1552b0452466a75d781cba07..15991bc119c7e0a29d870ac7b2627c61a31783ee 100644 (file)
@@ -480,7 +480,7 @@ namespace PETScWrappers
   void
   PreconditionBoomerAMG::initialize ()
   {
-#ifndef PETSC_USE_COMPLEX
+#ifdef PETSC_HAVE_HYPRE
     int ierr;
     ierr = PCSetType (pc, const_cast<char *>(PCHYPRE));
     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.