]> https://gitweb.dealii.org/ - candi.git/commitdiff
Trilinos: add complex option 230/head
authorTimo Heister <timo.heister@gmail.com>
Thu, 1 Jul 2021 20:10:20 +0000 (16:10 -0400)
committerTimo Heister <timo.heister@gmail.com>
Thu, 1 Jul 2021 20:10:34 +0000 (16:10 -0400)
Trilinos complex support is not needed in deal.II, unless complex Tpetra
vectors are used (unlikely). Enabling it requires large amounts of RAM
(we are talking 10GB per process). Instead, introduce an option that
defaults to OFF.
Also see https://github.com/dealii/dealii/pull/8945
fixes #219

candi.cfg
deal.II-toolchain/packages/trilinos.package

index 99d66e42336494f5551958e04dcf99bc37b1f595..3a5dd336db508d90e9e70ec337e5707cc3763b7a 100644 (file)
--- a/candi.cfg
+++ b/candi.cfg
@@ -98,6 +98,11 @@ TRILINOS_MAJOR_VERSION=AUTO
 #TRILINOS_MAJOR_VERSION=12
 #TRILINOS_MAJOR_VERSION=11
 
+# If enabled, Trilinos is configured with complex number support in
+# Teuchos and Tpetra. This takes a long time to compile and requires a
+# lot of RAM. It is also likely not something you will need.
+TRILINOS_WITH_COMPLEX=OFF
+
 #########################################################################
 
 # Option {ON|OFF}: Do you want to use MKL?
index 0c208959dc0b7d74cdb8594decda87ce237e17a4..4da73266b18a1d19b5c00defcf2ab29c73359d47 100644 (file)
@@ -183,16 +183,10 @@ CONFOPTS="\
   -D Trilinos_ENABLE_Ifpack:BOOL=ON \
   -D Trilinos_ENABLE_Ifpack2:BOOL=OFF \
   -D Trilinos_ENABLE_Tpetra:BOOL=ON \
-  -D   Tpetra_INST_DOUBLE:BOOL=ON \
   -D   Tpetra_INST_INT_LONG:BOOL=ON \
-  -D   Tpetra_INST_COMPLEX_DOUBLE:BOOL=ON \
-  -D   Tpetra_INST_COMPLEX_FLOAT:BOOL=ON \
-  -D   Tpetra_INST_FLOAT:BOOL=ON \
-  -D   Tpetra_INST_SERIAL:BOOL=ON \
   -D Trilinos_ENABLE_AztecOO:BOOL=ON \
   -D Trilinos_ENABLE_Sacado:BOOL=ON \
   -D Trilinos_ENABLE_Teuchos:BOOL=ON \
-  -D   Teuchos_ENABLE_COMPLEX:BOOL=ON \
   -D   Teuchos_ENABLE_FLOAT:BOOL=ON \
   -D Trilinos_ENABLE_MueLu:BOOL=ON \
   -D Trilinos_ENABLE_ML:BOOL=ON \
@@ -205,7 +199,18 @@ CONFOPTS="\
   -D CMAKE_BUILD_TYPE:STRING=RELEASE \
   -D CMAKE_VERBOSE_MAKEFILE:BOOL=OFF \
   -D BUILD_SHARED_LIBS:BOOL=ON \
-  ${CONFOPTS} \
+  ${CONFOPTS}"
+
+if [ ${TRILINOS_WITH_COMPLEX} = ON ]; then
+    CONFOPTS="\
+    -D Trilinos_ENABLE_COMPLEX_DOUBLE=ON \
+    -D Trilinos_ENABLE_COMPLEX_FLOAT=ON \
+    -D Teuchos_ENABLE_COMPLEX:BOOL=ON \
+    ${CONFOPTS}"
+fi
+
+# finally append user options:
+CONFOPTS="${CONFOPTS} \
   ${TRILINOS_CONFOPTS}"
 
 package_specific_register () {

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.