From: Wolfgang Bangerth Date: Fri, 19 Jan 2024 20:49:42 +0000 (-0700) Subject: Fix type in Tensor initialization. X-Git-Tag: relicensing~130^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16506%2Fhead;p=dealii.git Fix type in Tensor initialization. --- diff --git a/include/deal.II/base/tensor.h b/include/deal.II/base/tensor.h index a6aed73afe..1c3652cb3a 100644 --- a/include/deal.II/base/tensor.h +++ b/include/deal.II/base/tensor.h @@ -1313,7 +1313,7 @@ template constexpr DEAL_II_HOST_DEVICE_ALWAYS_INLINE Tensor::Tensor(const ArrayLike &initializer, std::index_sequence) - : values{{Tensor(initializer[indices])...}} + : values{{value_type(initializer[indices])...}} { static_assert(sizeof...(indices) == dim, "dim should match the number of indices");