From: Jean-Paul Pelteret Date: Wed, 30 Aug 2017 12:08:51 +0000 (+0200) Subject: Setup and use DEAL_II_PETSC_WITH_MUMPS in PETSc solver. X-Git-Tag: v9.0.0-rc1~1031^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31277cddd3ad453705b0ca14d114ce0dea0aab98;p=dealii.git Setup and use DEAL_II_PETSC_WITH_MUMPS in PETSc solver. --- diff --git a/include/deal.II/base/config.h.in b/include/deal.II/base/config.h.in index c8e53b63b8..7c2ab1d933 100644 --- a/include/deal.II/base/config.h.in +++ b/include/deal.II/base/config.h.in @@ -145,6 +145,9 @@ /* cmake/modules/FindARPACK.cmake */ #cmakedefine DEAL_II_ARPACK_WITH_PARPACK +/* cmake/modules/FindPETSC.cmake */ +#cmakedefine DEAL_II_PETSC_WITH_MUMPS + /* cmake/configure/configure_1_threads.cmake */ #cmakedefine DEAL_II_USE_MT_POSIX #cmakedefine DEAL_II_USE_MT_POSIX_NO_BARRIERS diff --git a/source/lac/petsc_solver.cc b/source/lac/petsc_solver.cc index f0659b48ab..5168dc42db 100644 --- a/source/lac/petsc_solver.cc +++ b/source/lac/petsc_solver.cc @@ -675,7 +675,7 @@ namespace PETScWrappers VectorBase &x, const VectorBase &b) { -#ifdef PETSC_HAVE_MUMPS +#ifdef DEAL_II_PETSC_WITH_MUMPS /** * factorization matrix to be obtained from MUMPS */ @@ -821,7 +821,7 @@ namespace PETScWrappers AssertThrow (ierr == 0, ExcPETScError(ierr)); } -#else // PETSC_HAVE_MUMPS +#else // DEAL_II_PETSC_WITH_MUMPS Assert (false, ExcMessage ("Your PETSc installation does not include a copy of " "the MUMPS package necessary for this solver. You will need to configure "