]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Setup and use DEAL_II_PETSC_WITH_MUMPS in PETSc solver. 4994/head
authorJean-Paul Pelteret <jppelteret@gmail.com>
Wed, 30 Aug 2017 12:08:51 +0000 (14:08 +0200)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Wed, 30 Aug 2017 14:05:51 +0000 (16:05 +0200)
include/deal.II/base/config.h.in
source/lac/petsc_solver.cc

index c8e53b63b8f06e05ca4240bfd9692251a75bf3ae..7c2ab1d933e5f49676f07e753b31b77f788084a4 100644 (file)
 /* 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
index f0659b48ab54c519e80e57e010b48503c4e30fce..5168dc42dbccf50a28697aeadb26846467a380cf 100644 (file)
@@ -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 "

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.