From: David Wells Date: Thu, 7 Jul 2016 13:36:20 +0000 (-0400) Subject: Fix compilation with PETSc and not hypre. X-Git-Tag: v8.5.0-rc1~917^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2762%2Fhead;p=dealii.git Fix compilation with PETSc and not hypre. --- diff --git a/source/lac/petsc_precondition.cc b/source/lac/petsc_precondition.cc index 96bd524b52..15991bc119 100644 --- a/source/lac/petsc_precondition.cc +++ b/source/lac/petsc_precondition.cc @@ -480,7 +480,7 @@ namespace PETScWrappers void PreconditionBoomerAMG::initialize () { -#ifndef PETSC_USE_COMPLEX +#ifdef PETSC_HAVE_HYPRE int ierr; ierr = PCSetType (pc, const_cast(PCHYPRE)); AssertThrow (ierr == 0, ExcPETScError(ierr));