From 136afcddc52b6254da86332e9da20f20ea4dc6c1 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Thu, 12 Dec 2013 21:31:23 +0000 Subject: [PATCH] Add a few minor features viz.: field_type blocklevel operator=(scalar) [[Imported from SVN: r9583]] --- dune/gfe/symmetricmatrix.hh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/dune/gfe/symmetricmatrix.hh b/dune/gfe/symmetricmatrix.hh index c4611231..05c39c6e 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 -- GitLab