From 76ceab6d528756041d6e82d27c729b90b79c6934 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 7 Aug 2019 15:03:38 -0600 Subject: [PATCH] Address more comments --- include/deal.II/base/tensor.h | 12 ++++---- tests/tensors/constexpr_tensor.cc | 50 ++++++++++++++----------------- 2 files changed, 28 insertions(+), 34 deletions(-) diff --git a/include/deal.II/base/tensor.h b/include/deal.II/base/tensor.h index 49725bfcee..36fca103da 100644 --- a/include/deal.II/base/tensor.h +++ b/include/deal.II/base/tensor.h @@ -1564,7 +1564,7 @@ operator<<(std::ostream &out, const Tensor<0, dim, Number> &p) * @relatesalso Tensor<0,dim,Number> */ template -DEAL_II_CONSTEXPR DEAL_II_CUDA_HOST_DEV DEAL_II_ALWAYS_INLINE +DEAL_II_CONSTEXPR DEAL_II_CUDA_HOST_DEV inline DEAL_II_ALWAYS_INLINE typename ProductType::type operator*(const Other &object, const Tensor<0, dim, Number> &t) { @@ -1584,7 +1584,7 @@ DEAL_II_CONSTEXPR DEAL_II_CUDA_HOST_DEV DEAL_II_ALWAYS_INLINE * @relatesalso Tensor<0,dim,Number> */ template -DEAL_II_CONSTEXPR DEAL_II_CUDA_HOST_DEV DEAL_II_ALWAYS_INLINE +DEAL_II_CONSTEXPR DEAL_II_CUDA_HOST_DEV inline DEAL_II_ALWAYS_INLINE typename ProductType::type operator*(const Tensor<0, dim, Number> &t, const Other &object) { @@ -1708,12 +1708,12 @@ DEAL_II_CONSTEXPR DEAL_II_CUDA_HOST_DEV inline DEAL_II_ALWAYS_INLINE * @relatesalso Tensor */ template -DEAL_II_CUDA_HOST_DEV DEAL_II_CONSTEXPR DEAL_II_ALWAYS_INLINE - Tensor::type, OtherNumber>::type> - operator*(const Number &factor, const Tensor &t) + operator*(const Number &factor, const Tensor &t) { // simply forward to the operator above return t * factor; @@ -2146,7 +2146,7 @@ template