From: Daniel Arndt Date: Fri, 9 Aug 2019 15:05:26 +0000 (-0400) Subject: Avoid CUDA warnings related to DEAL_II_ALWAYS_INLINE X-Git-Tag: v9.2.0-rc1~1260^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8531%2Fhead;p=dealii.git Avoid CUDA warnings related to DEAL_II_ALWAYS_INLINE --- diff --git a/include/deal.II/base/symmetric_tensor.h b/include/deal.II/base/symmetric_tensor.h index 57fff3af70..bf65aec239 100644 --- a/include/deal.II/base/symmetric_tensor.h +++ b/include/deal.II/base/symmetric_tensor.h @@ -32,36 +32,36 @@ template class SymmetricTensor; template -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 -DEAL_II_CONSTEXPR SymmetricTensor<4, dim, Number> - deviator_tensor(); +DEAL_II_CONSTEXPR inline DEAL_II_ALWAYS_INLINE SymmetricTensor<4, dim, Number> + deviator_tensor(); template -DEAL_II_CONSTEXPR SymmetricTensor<4, dim, Number> - identity_tensor(); +DEAL_II_CONSTEXPR inline DEAL_II_ALWAYS_INLINE SymmetricTensor<4, dim, Number> + identity_tensor(); template -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 -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 -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 -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 -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> &);