diff --git a/dune/gfe/quaternion.hh b/dune/gfe/quaternion.hh index a6580dfd366984eb7d9c78e90012613a6e98bc85..56c92b7890b2e2925529eb560f6d91d502eb7de3 100644 --- a/dune/gfe/quaternion.hh +++ b/dune/gfe/quaternion.hh @@ -162,4 +162,15 @@ public: }; +namespace Dune +{ + /** \brief Specizalization needed to allow certain forms of matrix--quaternion multiplications */ + template< class T > + struct FieldTraits< Quaternion<T> > + { + typedef typename FieldTraits<T>::field_type field_type; + typedef typename FieldTraits<T>::real_type real_type; + }; +} + #endif