From 322577963fed131b260c62bf42c2eccf93ed9c07 Mon Sep 17 00:00:00 2001 From: Oliver Sander <oliver.sander@tu-dresden.de> Date: Wed, 18 Dec 2019 21:16:30 +0100 Subject: [PATCH] Add constructor from scalar For some reason only clang complains about this. --- dune/gfe/skewmatrix.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dune/gfe/skewmatrix.hh b/dune/gfe/skewmatrix.hh index f416e544..083cd191 100644 --- a/dune/gfe/skewmatrix.hh +++ b/dune/gfe/skewmatrix.hh @@ -29,6 +29,10 @@ public: data_ = {m[2][1], m[0][2], m[1][0]}; } + SkewMatrix(T v) + : data_(v) + {} + SkewMatrix<T,3>& operator*=(const T& a) { data_ *= a; -- GitLab