Skip to content
Snippets Groups Projects
Commit 5631ecdf authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Use the field-type constructor of DiagonalMatrix

parent caa6d876
Branches
No related tags found
Loading
...@@ -46,7 +46,7 @@ namespace AMDiS ...@@ -46,7 +46,7 @@ namespace AMDiS
template <class T, int N> template <class T, int N>
Dune::DiagonalMatrix<T, N> operator()(Dune::FieldVector<T, N> const& /*x*/) const Dune::DiagonalMatrix<T, N> operator()(Dune::FieldVector<T, N> const& /*x*/) const
{ {
return Dune::DiagonalMatrix<T,N>{T(1)}; return Dune::DiagonalMatrix<T,N>(T(1));
} }
}; };
friend Derivative derivativeOf(CoordsFunction const& /*f*/, tag::gradient) friend Derivative derivativeOf(CoordsFunction const& /*f*/, tag::gradient)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment