Skip to content
Snippets Groups Projects
Commit 21585c25 authored by Porrmann, Maik's avatar Porrmann, Maik
Browse files

add comment to Hermite::LocalValuedFunction

parent 8c0c0f16
No related branches found
No related tags found
No related merge requests found
......@@ -82,9 +82,10 @@ namespace Dune
friend auto derivative(LocalValuedFunction const &t)
{
return LocalValuedFunction<std::decay<decltype(derivative(t.f_))::type>, LocalCoordinate, Element>(derivative(t.f_), element_);
// auto df = derivative(t.f_);
// return LocalValuedFunction<typename std::decay<decltype(df)>::type, LocalCoordinate, Element>(df, t.element_);
// I would like to do this
// return LocalValuedFunction<typename std::decay<decltype(derivative(t.f_))>::type, LocalCoordinate, Element>(derivative(t.f_), t.element_);
// But it leads to a DifferentiableFunction which causes a segmentation violation when calling asInterface() ....
return derivative(t.f_);
}
};
};
......
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