]> https://gitweb.dealii.org/ - dealii.git/commitdiff
step-40 disable logic with complex PETSc 7956/head
authorTimo Heister <timo.heister@gmail.com>
Wed, 24 Apr 2019 04:36:59 +0000 (22:36 -0600)
committerTimo Heister <timo.heister@gmail.com>
Wed, 24 Apr 2019 04:36:59 +0000 (22:36 -0600)
Having PETSC_WITH_COMPLEX would stop step-40 from being able to
configure/build. Now we fall back to trilinos as described in the error
message.

part of #7946

examples/step-40/CMakeLists.txt
examples/step-40/step-40.cc

index 75c4c132e8bd9b9f110516bdf7310a1837f55366..e0ac1cf48468264ab9164831b633f2f11dab741b 100644 (file)
@@ -37,7 +37,7 @@ ENDIF()
 #
 # Are all dependencies fulfilled?
 #
-IF(NOT (DEAL_II_WITH_PETSC OR DEAL_II_WITH_TRILINOS) OR NOT DEAL_II_WITH_P4EST OR DEAL_II_PETSC_WITH_COMPLEX) # keep in one line
+IF(NOT ((DEAL_II_WITH_PETSC AND NOT DEAL_II_PETSC_WITH_COMPLEX) OR DEAL_II_WITH_TRILINOS) OR NOT DEAL_II_WITH_P4EST) # keep in one line
   MESSAGE(FATAL_ERROR "
 Error! This tutorial requires a deal.II library that was configured with the following options:
     DEAL_II_WITH_PETSC = ON
index 0837dd65f6623169aad427920de31e3e1609575a..343b416efe695fd7f9c7d35824d2543cc5f4429a 100644 (file)
@@ -39,7 +39,7 @@
 // if we are using PETSc (see solve() for an example where this is necessary)
 namespace LA
 {
-#if defined(DEAL_II_WITH_PETSC) && \
+#if defined(DEAL_II_WITH_PETSC) && !defined(DEAL_II_PETSC_WITH_COMPLEX) && \
   !(defined(DEAL_II_WITH_TRILINOS) && defined(FORCE_USE_OF_TRILINOS))
   using namespace dealii::LinearAlgebraPETSc;
 #  define USE_PETSC_LA

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.