# PETSC_VERSION_PATCH
# PETSC_WITH_64BIT_INDICES
# PETSC_WITH_COMPLEX
+# PETSC_WITH_HYPRE
# PETSC_WITH_MPIUNI
# PETSC_WITH_MUMPS
#
IF(EXISTS ${PETSC_PETSCCONF_H})
_petsc_feature_check(64BIT_INDICES "#define.*PETSC_USE_64BIT_INDICES 1")
_petsc_feature_check(COMPLEX "#define.*PETSC_USE_COMPLEX 1")
+ _petsc_feature_check(HYPRE "#define.*PETSC_HAVE_HYPRE 1")
_petsc_feature_check(MPIUNI "#define.*PETSC_HAVE_MPIUNI 1")
_petsc_feature_check(MUMPS "#define.*PETSC_HAVE_MUMPS 1")
ENDIF()
PetscErrorCode ierr = PCCreate(comm, &pc);
AssertThrow (ierr == 0, ExcPETScError(ierr));
-#ifdef PETSC_HAVE_HYPRE
+#ifdef DEAL_II_PETSC_WITH_HYPRE
initialize();
-#else // PETSC_HAVE_HYPRE
+#else // DEAL_II_PETSC_WITH_HYPRE
(void)pc;
Assert (false,
ExcMessage ("Your PETSc installation does not include a copy of "
void
PreconditionBoomerAMG::initialize ()
{
-#ifdef PETSC_HAVE_HYPRE
+#ifdef DEAL_II_PETSC_WITH_HYPRE
PetscErrorCode ierr = PCSetType (pc, const_cast<char *>(PCHYPRE));
AssertThrow (ierr == 0, ExcPETScError(ierr));
PreconditionBoomerAMG::initialize (const MatrixBase &matrix_,
const AdditionalData &additional_data_)
{
-#ifdef PETSC_HAVE_HYPRE
+#ifdef DEAL_II_PETSC_WITH_HYPRE
clear ();
matrix = static_cast<Mat>(matrix_);
PetscErrorCode ierr = PCSetUp (pc);
AssertThrow (ierr == 0, ExcPETScError(ierr));
-#else // PETSC_HAVE_HYPRE
+#else // DEAL_II_PETSC_WITH_HYPRE
(void)matrix_;
(void)additional_data_;
Assert (false,
matrix = static_cast<Mat>(matrix_);
additional_data = additional_data_;
-#ifdef PETSC_HAVE_HYPRE
+#ifdef DEAL_II_PETSC_WITH_HYPRE
create_pc();
PetscErrorCode ierr = PCSetType (pc, const_cast<char *>(PCHYPRE));
ierr = PCSetUp (pc);
AssertThrow (ierr == 0, ExcPETScError(ierr));
-#else // PETSC_HAVE_HYPRE
+#else // DEAL_II_PETSC_WITH_HYPRE
(void)pc;
Assert (false,
ExcMessage ("Your PETSc installation does not include a copy of "