diff --git a/dune/gfe/tensor3.hh b/dune/gfe/tensor3.hh index 5324107dd8001a525f797448e9606c21b33c168f..5bbd72256c18420ce15a9d978f6e91bc4bf5d0dc 100644 --- a/dune/gfe/tensor3.hh +++ b/dune/gfe/tensor3.hh @@ -23,7 +23,9 @@ public: Tensor3(const T& c) { for (int i=0; i<N1; i++) - (*this)[i] = c; + for (int j=0; j<N2; j++) + for (int k=0; k<N3; k++) + (*this)[i][j][k] = c; } T infinity_norm() const