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
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ namespace AMDiS
template <class T, int N>
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)
......
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