diff --git a/common/fixedarray.hh b/common/fixedarray.hh index 164cf1684b8c8be2ab5477675915678128636813..79793d38afe3f7f698d4fcee8d1d9d524ec2f2a7 100644 --- a/common/fixedarray.hh +++ b/common/fixedarray.hh @@ -91,6 +91,12 @@ namespace Dune return (*this); } + //! \brief Assign value to all entries + void assign(const T& t) + { + for (int i=0; i<N; i++) a[i]=t; + } + //! Component access reference operator[] (size_type i) {