]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Adding inline in header file 8040/head
authorReza Rastak <rezarastak@users.noreply.github.com>
Wed, 8 May 2019 17:46:05 +0000 (10:46 -0700)
committerGitHub <noreply@github.com>
Wed, 8 May 2019 17:46:05 +0000 (10:46 -0700)
Following #8037 , the `inline` keyword should be added.

include/deal.II/base/tensor.h

index 47d27ca6b7ba1a7926a10fe4262f33097c75ed6d..2bcca233415b9509b9c60639febb076fdaf8b703 100644 (file)
@@ -930,7 +930,7 @@ namespace internal
   namespace ComplexWorkaround
   {
     template <typename Number, typename OtherNumber>
-    DEAL_II_CUDA_HOST_DEV void
+    inline 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>
-    DEAL_II_CUDA_HOST_DEV void
+    inline 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.