Skip to content

Commit

Permalink
Ensure alignment appropriate for std::array, not Number.
Browse files Browse the repository at this point in the history
  • Loading branch information
bangerth committed Apr 4, 2024
1 parent 32323a5 commit da1bc7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/deal.II/base/tensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ namespace internal
constexpr size_t tensor_alignment =
((rank == 1) && can_treat_values_as_vectorized_array<1, dim, Number> ?
n_elements_for_base_array<rank, dim, Number> * sizeof(Number) :
alignof(Number));
alignof(std::array<Number, dim>));
} // namespace TensorImplementation
} // namespace internal

Expand Down

0 comments on commit da1bc7e

Please sign in to comment.