]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid CUDA warnings related to DEAL_II_ALWAYS_INLINE 8531/head
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 9 Aug 2019 15:05:26 +0000 (11:05 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 9 Aug 2019 15:05:26 +0000 (11:05 -0400)
include/deal.II/base/symmetric_tensor.h

index 57fff3af708ab113f1df45e66640c6ca412127a3..bf65aec239dbb0ef35624f1067cabbb012b1c405 100644 (file)
@@ -32,36 +32,36 @@ template <int rank, int dim, typename Number = double>
 class SymmetricTensor;
 
 template <int dim, typename Number>
-DEAL_II_CONSTEXPR SymmetricTensor<2, dim, Number>
-                  unit_symmetric_tensor();
+DEAL_II_CONSTEXPR inline DEAL_II_ALWAYS_INLINE SymmetricTensor<2, dim, Number>
+                                               unit_symmetric_tensor();
 
 template <int dim, typename Number>
-DEAL_II_CONSTEXPR SymmetricTensor<4, dim, Number>
-                  deviator_tensor();
+DEAL_II_CONSTEXPR inline DEAL_II_ALWAYS_INLINE SymmetricTensor<4, dim, Number>
+                                               deviator_tensor();
 
 template <int dim, typename Number>
-DEAL_II_CONSTEXPR SymmetricTensor<4, dim, Number>
-                  identity_tensor();
+DEAL_II_CONSTEXPR inline DEAL_II_ALWAYS_INLINE SymmetricTensor<4, dim, Number>
+                                               identity_tensor();
 
 template <int dim, typename Number>
-constexpr SymmetricTensor<2, dim, Number>
-invert(const SymmetricTensor<2, dim, Number> &);
+constexpr DEAL_II_ALWAYS_INLINE SymmetricTensor<2, dim, Number>
+                                invert(const SymmetricTensor<2, dim, Number> &);
 
 template <int dim, typename Number>
-constexpr SymmetricTensor<4, dim, Number>
-invert(const SymmetricTensor<4, dim, Number> &);
+constexpr DEAL_II_ALWAYS_INLINE SymmetricTensor<4, dim, Number>
+                                invert(const SymmetricTensor<4, dim, Number> &);
 
 template <int dim2, typename Number>
-DEAL_II_CONSTEXPR Number
-                  trace(const SymmetricTensor<2, dim2, Number> &);
+DEAL_II_CONSTEXPR inline DEAL_II_ALWAYS_INLINE Number
+                                               trace(const SymmetricTensor<2, dim2, Number> &);
 
 template <int dim, typename Number>
-DEAL_II_CONSTEXPR SymmetricTensor<2, dim, Number>
-                  deviator(const SymmetricTensor<2, dim, Number> &);
+DEAL_II_CONSTEXPR inline DEAL_II_ALWAYS_INLINE SymmetricTensor<2, dim, Number>
+                                               deviator(const SymmetricTensor<2, dim, Number> &);
 
 template <int dim, typename Number>
-DEAL_II_CONSTEXPR Number
-                  determinant(const SymmetricTensor<2, dim, Number> &);
+DEAL_II_CONSTEXPR inline DEAL_II_ALWAYS_INLINE Number
+                                               determinant(const SymmetricTensor<2, dim, Number> &);
 
 
 

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.