From d6810b7f9639e5ab8001cf6737cd6daa9787615f Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Fri, 12 Jul 2013 21:30:43 +0000
Subject: [PATCH] export the types used for derivatives

[[Imported from SVN: r9306]]
---
 dune/gfe/localgeodesicfefunction.hh | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/dune/gfe/localgeodesicfefunction.hh b/dune/gfe/localgeodesicfefunction.hh
index 4c32bec3b..f3635af88 100644
--- a/dune/gfe/localgeodesicfefunction.hh
+++ b/dune/gfe/localgeodesicfefunction.hh
@@ -39,6 +39,9 @@ class LocalGeodesicFEFunction
     friend class LocalGfeTestFunctionBasis<LocalFiniteElement,TargetSpace>;
 public:
 
+    /** \brief The type used for derivatives */
+    typedef Dune::FieldMatrix<ctype, EmbeddedTangentVector::dimension, dim> DerivativeType;
+
     /** \brief Constructor
      * \param localFiniteElement A Lagrangian finite element that provides the interpolation points
      * \param coefficients Values of the function at the Lagrange points
@@ -67,17 +70,17 @@ public:
     TargetSpace evaluate(const Dune::FieldVector<ctype, dim>& local) const;
 
     /** \brief Evaluate the derivative of the function */
-    Dune::FieldMatrix<ctype, EmbeddedTangentVector::dimension, dim> evaluateDerivative(const Dune::FieldVector<ctype, dim>& local) const;
+    DerivativeType evaluateDerivative(const Dune::FieldVector<ctype, dim>& local) const;
 
     /** \brief Evaluate the derivative of the function, if you happen to know the function value (much faster!)
         \param local Local coordinates in the reference element where to evaluate the derivative
         \param q Value of the local gfe function at 'local'.  If you provide something wrong here the result will be wrong, too!
      */
-    Dune::FieldMatrix<ctype, EmbeddedTangentVector::dimension, dim> evaluateDerivative(const Dune::FieldVector<ctype, dim>& local,
-                                                                                       const TargetSpace& q) const;
+    DerivativeType evaluateDerivative(const Dune::FieldVector<ctype, dim>& local,
+                                      const TargetSpace& q) const;
 
     /** \brief For debugging: Evaluate the derivative of the function using a finite-difference approximation*/
-    Dune::FieldMatrix<ctype, EmbeddedTangentVector::dimension, dim> evaluateDerivativeFD(const Dune::FieldVector<ctype, dim>& local) const;
+    DerivativeType evaluateDerivativeFD(const Dune::FieldVector<ctype, dim>& local) const;
 
     /** \brief Evaluate the derivative of the function value with respect to a coefficient */
     void evaluateDerivativeOfValueWRTCoefficient(const Dune::FieldVector<ctype, dim>& local,
-- 
GitLab