From eee9342d97dba4df61aaebce86a43e85f8afd113 Mon Sep 17 00:00:00 2001
From: Oliver Sander <oliver.sander@tu-dresden.de>
Date: Mon, 8 Feb 2016 13:07:26 +0100
Subject: [PATCH] Set the proper derivative type for functions mapping to
 UnitVector

Apparently, nobody had used the evaluateDerivativeLocal method before.
---
 dune/gfe/globalgeodesicfefunction.hh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dune/gfe/globalgeodesicfefunction.hh b/dune/gfe/globalgeodesicfefunction.hh
index 3feda008..8e68d06a 100644
--- a/dune/gfe/globalgeodesicfefunction.hh
+++ b/dune/gfe/globalgeodesicfefunction.hh
@@ -8,6 +8,14 @@
 
 #include <dune/gfe/localgeodesicfefunction.hh>
 
+template <class dctype, int DimDomain, class rctype, int DimRange>
+struct DerivativeTypefier<Dune::FieldVector<dctype, DimDomain>, UnitVector<rctype,DimRange> >
+{
+  typedef Dune::FieldMatrix<rctype, DimRange, DimDomain> DerivativeType;
+};
+
+
+
 /** \brief Global geodesic finite element function.
  *
  *  \tparam B  - The global basis type.
-- 
GitLab