]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix use of contexpr in Tensor class for older compilers 8037/head
authorJean-Paul Pelteret <jppelteret@gmail.com>
Wed, 8 May 2019 08:26:52 +0000 (10:26 +0200)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Wed, 8 May 2019 08:27:39 +0000 (10:27 +0200)
include/deal.II/base/tensor.h

index 666509a6c7aa8b1946e3c703a874a95f97bec988..47d27ca6b7ba1a7926a10fe4262f33097c75ed6d 100644 (file)
@@ -930,7 +930,7 @@ namespace internal
   namespace ComplexWorkaround
   {
     template <typename Number, typename OtherNumber>
-    constexpr DEAL_II_CUDA_HOST_DEV void
+    DEAL_II_CUDA_HOST_DEV void
     multiply_assign_scalar(Number &val, const OtherNumber &s)
     {
       val *= s;
@@ -938,7 +938,7 @@ namespace internal
 
 #ifdef __CUDA_ARCH__
     template <typename Number, typename OtherNumber>
-    constexpr DEAL_II_CUDA_HOST_DEV void
+    DEAL_II_CUDA_HOST_DEV void
     multiply_assign_scalar(std::complex<Number> &, const OtherNumber &)
     {
       printf("This function is not implemented for std::complex<Number>!\n");

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.