From b0dc221dad4c47f3acf78501f8ba002b26b1fbe3 Mon Sep 17 00:00:00 2001 From: Simon Praetorius <simon.praetorius@tu-dresden.de> Date: Sat, 15 Feb 2025 17:40:18 +0100 Subject: [PATCH] Fix assignment operator of FieldMatrix with different field type --- dune/common/fmatrix.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dune/common/fmatrix.hh b/dune/common/fmatrix.hh index 42c379ea9..59d3db71b 100644 --- a/dune/common/fmatrix.hh +++ b/dune/common/fmatrix.hh @@ -163,7 +163,7 @@ namespace Dune template<typename T> FieldMatrix& operator=(const FieldMatrix<T, ROWS, COLS>& x) { - _data = x._data; + std::copy(x.begin(), x.end(), this->begin()); return *this; } -- GitLab