]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Address comments
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 27 Sep 2018 03:31:42 +0000 (05:31 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 5 Oct 2018 03:17:23 +0000 (05:17 +0200)
cmake/configure/configure_complex_values.cmake [new file with mode: 0644]
cmake/setup_cached_variables.cmake
source/lac/full_matrix.cc
source/lac/vector.cc

diff --git a/cmake/configure/configure_complex_values.cmake b/cmake/configure/configure_complex_values.cmake
new file mode 100644 (file)
index 0000000..b868cc5
--- /dev/null
@@ -0,0 +1,46 @@
+## ---------------------------------------------------------------------
+##
+## Copyright (C) 2018 by the deal.II authors
+##
+## This file is part of the deal.II library.
+##
+## The deal.II library is free software; you can use it, redistribute
+## it, and/or modify it under the terms of the GNU Lesser General
+## Public License as published by the Free Software Foundation; either
+## version 2.1 of the License, or (at your option) any later version.
+## The full text of the license can be found in the file LICENSE.md at
+## the top level directory of deal.II.
+##
+## ---------------------------------------------------------------------
+#
+# Configuration for complex value support
+#
+
+IF(${DEAL_II_WITH_COMPLEX_VALUES})
+   SET(DEAL_II_EXPAND_COMPLEX_SCALARS 
+       "std::complex<double>"
+       "std::complex<float>"
+      )
+   SET(DEAL_II_EXPAND_COMPLEX_VECTORS 
+       "Vector<std::complex<double> >"
+       "Vector<std::complex<float> >"
+      )
+   SET(DEAL_II_EXPAND_COMPLEX_BLOCK_VECTORS
+       "BlockVector<std::complex<double> >"
+       "BlockVector<std::complex<float> >"
+      )
+   SET(DEAL_II_EXPAND_COMPLEX_LA_VECTORS
+       "LinearAlgebra::Vector<std::complex<double> >"
+       "LinearAlgebra::Vector<std::complex<float> >"
+      )
+   SET(DEAL_II_EXPAND_COMPLEX_LA_PARALLEL_VECTORS
+       "LinearAlgebra::distributed::Vector<std::complex<double> >"
+       "LinearAlgebra::distributed::Vector<std::complex<float> >"
+      )
+   SET(DEAL_II_EXPAND_COMPLEX_LA_PARALLEL_BLOCK_VECTORS
+       "LinearAlgebra::distributed::BlockVector<std::complex<double> >"
+       "LinearAlgebra::distributed::BlockVector<std::complex<float> >"
+      )
+ENDIF()
+
index da4a4fdde07145352a952bc9eed217d9a4482545..1859c72a791b9a707e288a79acb9b319ed059e33 100644 (file)
@@ -372,37 +372,10 @@ OPTION(DEAL_II_WITH_64BIT_INDICES
 LIST(APPEND DEAL_II_FEATURES 64BIT_INDICES)
 
 OPTION(DEAL_II_WITH_COMPLEX_VALUES
-  "If set to OFF, the classes that take a number type are not explicitly instantiated for std::complex<float> and std::complex<double>. If PETSc is built with complex scalar type, this option must be ON."
+  "If set to OFF, the classes that take a number type are not explicitly instantiated for std::complex<float> and std::complex<double>. This effectively disables the support for computing with complex values. If PETSc is built with complex scalar type, this option must be ON."
   ON
   )
 LIST(APPEND DEAL_II_FEATURES COMPLEX_VALUES)
-IF(${DEAL_II_WITH_COMPLEX_VALUES})
-  SET(DEAL_II_EXPAND_COMPLEX_SCALARS 
-      "std::complex<double>"
-      "std::complex<float>"
-     )  
-  SET(DEAL_II_EXPAND_COMPLEX_VECTORS 
-      "Vector<std::complex<double> >"
-      "Vector<std::complex<float> >"
-     )
-  SET(DEAL_II_EXPAND_COMPLEX_BLOCK_VECTORS
-      "BlockVector<std::complex<double> >"
-      "BlockVector<std::complex<float> >"
-     )
-  SET(DEAL_II_EXPAND_COMPLEX_LA_VECTORS
-      "LinearAlgebra::Vector<std::complex<double> >"
-      "LinearAlgebra::Vector<std::complex<float> >"
-     )
-  SET(DEAL_II_EXPAND_COMPLEX_LA_PARALLEL_VECTORS
-      "LinearAlgebra::distributed::Vector<std::complex<double> >"
-      "LinearAlgebra::distributed::Vector<std::complex<float> >"
-     )
-  SET(DEAL_II_EXPAND_COMPLEX_LA_PARALLEL_BLOCK_VECTORS
-      "LinearAlgebra::distributed::BlockVector<std::complex<double> >"
-      "LinearAlgebra::distributed::BlockVector<std::complex<float> >"
-     )
-ENDIF()
 
 OPTION(DEAL_II_DOXYGEN_USE_MATHJAX
   "If set to ON, doxygen documentation is generated using mathjax"
index 57eaa76067989ced5a87faf5bf3dab3fc44af66a..db16893dce7e83fd76dab688b08e792d0f13c559 100644 (file)
@@ -22,7 +22,8 @@ DEAL_II_NAMESPACE_OPEN
 #include "full_matrix.inst"
 
 #ifndef DEAL_II_WITH_COMPLEX_VALUES
-// instantiate for std::complex<double> because we use it internally.
+// instantiate for std::complex<double> because we use it internally in
+// FESeries.
 template class FullMatrix<std::complex<double>>;
 #endif
 
index cad91f6a021c5c7cb57dc818df4fbbadb1a2a6ad..c747e14c22c4309ad63934df8e0d1d625d124344 100644 (file)
@@ -20,7 +20,8 @@ DEAL_II_NAMESPACE_OPEN
 #include "vector.inst"
 
 #ifndef DEAL_II_WITH_COMPLEX_VALUES
-// instantiate for std::complex<double> since we are using it internally.
+// instantiate for std::complex<double> since we are using it internally in
+// FESeries.
 template class Vector<std::complex<double>>;
 #endif
 

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.