diff --git a/dune/gfe/symmetricmatrix.hh b/dune/gfe/symmetricmatrix.hh index c46112315289bdef4e316d56ac074d3b8d4d5a27..05c39c6eec2e291de6f18fcb82dd5875f90a9689 100644 --- a/dune/gfe/symmetricmatrix.hh +++ b/dune/gfe/symmetricmatrix.hh @@ -15,8 +15,14 @@ namespace Dune { template <class T, int N> class SymmetricMatrix { - public: + + /** \brief The type used for scalars + */ + typedef T field_type; + + enum {blocklevel = 0}; + /** \brief Default constructor * * Tensor is initialized containing zeros if no argument is given. @@ -25,6 +31,12 @@ public: SymmetricMatrix() {} + SymmetricMatrix<T,N>& operator=(const T& s) + { + data_ = s; + return *this; + } + /** \brief Matrix style random read/write access to components * \param i line index * \param j column index