diff --git a/dune/gfe/skewmatrix.hh b/dune/gfe/skewmatrix.hh index 632d26851f537d6e51f2f9e067bf1b7f0400f337..f416e5441969b2c946111cc2aaf914d5a90336dc 100644 --- a/dune/gfe/skewmatrix.hh +++ b/dune/gfe/skewmatrix.hh @@ -23,6 +23,12 @@ public: : data_(v) {} + /** \brief Constructor from a general matrix */ + explicit SkewMatrix(const Dune::FieldMatrix<T,3,3>& m) + { + data_ = {m[2][1], m[0][2], m[1][0]}; + } + SkewMatrix<T,3>& operator*=(const T& a) { data_ *= a;