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

Merge branch 'issue/return-reference-to-local-coords-grid-function' into 'master'

Do not return a reference to a local variable in CoordsGridFunction

See merge request amdis/amdis!195
parents 1afde968 7319996e
Branches
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ namespace AMDiS ...@@ -44,7 +44,7 @@ namespace AMDiS
struct Derivative struct Derivative
{ {
template <class T, int N> template <class T, int N>
Dune::DiagonalMatrix<T, N> const& 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)};
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment