]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix type in Tensor initialization. 16506/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 19 Jan 2024 20:49:42 +0000 (13:49 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 19 Jan 2024 20:49:42 +0000 (13:49 -0700)
include/deal.II/base/tensor.h

index a6aed73afe060986628103445963409daf5194d0..1c3652cb3a4fcd2255250f0b58afa8ba0e3eff5c 100644 (file)
@@ -1313,7 +1313,7 @@ template <typename ArrayLike, std::size_t... indices>
 constexpr DEAL_II_HOST_DEVICE_ALWAYS_INLINE
 Tensor<rank_, dim, Number>::Tensor(const ArrayLike &initializer,
                                    std::index_sequence<indices...>)
-  : values{{Tensor<rank_ - 1, dim, Number>(initializer[indices])...}}
+  : values{{value_type(initializer[indices])...}}
 {
   static_assert(sizeof...(indices) == dim,
                 "dim should match the number of indices");

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.