Skip to content
Snippets Groups Projects
Commit 136afcdd authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

Add a few minor features

viz.:

field_type
blocklevel
operator=(scalar)

[[Imported from SVN: r9583]]
parent 408c0310
No related branches found
No related tags found
No related merge requests found
...@@ -15,8 +15,14 @@ namespace Dune { ...@@ -15,8 +15,14 @@ namespace Dune {
template <class T, int N> template <class T, int N>
class SymmetricMatrix class SymmetricMatrix
{ {
public: public:
/** \brief The type used for scalars
*/
typedef T field_type;
enum {blocklevel = 0};
/** \brief Default constructor /** \brief Default constructor
* *
* Tensor is initialized containing zeros if no argument is given. * Tensor is initialized containing zeros if no argument is given.
...@@ -25,6 +31,12 @@ public: ...@@ -25,6 +31,12 @@ public:
SymmetricMatrix() SymmetricMatrix()
{} {}
SymmetricMatrix<T,N>& operator=(const T& s)
{
data_ = s;
return *this;
}
/** \brief Matrix style random read/write access to components /** \brief Matrix style random read/write access to components
* \param i line index * \param i line index
* \param j column index * \param j column index
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment