From 5631ecdfd2e5003a4b202ebc96c9910e4917cdc9 Mon Sep 17 00:00:00 2001 From: Simon Praetorius <simon.praetorius@tu-dresden.de> Date: Fri, 12 Apr 2024 13:36:25 +0200 Subject: [PATCH] Use the field-type constructor of DiagonalMatrix --- amdis/gridfunctions/CoordsGridFunction.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amdis/gridfunctions/CoordsGridFunction.hpp b/amdis/gridfunctions/CoordsGridFunction.hpp index 2512f186..00a19257 100644 --- a/amdis/gridfunctions/CoordsGridFunction.hpp +++ b/amdis/gridfunctions/CoordsGridFunction.hpp @@ -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) -- GitLab