Skip to content
Snippets Groups Projects
Commit d6810b7f authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

export the types used for derivatives

[[Imported from SVN: r9306]]
parent 6fcdb0cc
No related branches found
No related tags found
No related merge requests found
...@@ -39,6 +39,9 @@ class LocalGeodesicFEFunction ...@@ -39,6 +39,9 @@ class LocalGeodesicFEFunction
friend class LocalGfeTestFunctionBasis<LocalFiniteElement,TargetSpace>; friend class LocalGfeTestFunctionBasis<LocalFiniteElement,TargetSpace>;
public: public:
/** \brief The type used for derivatives */
typedef Dune::FieldMatrix<ctype, EmbeddedTangentVector::dimension, dim> DerivativeType;
/** \brief Constructor /** \brief Constructor
* \param localFiniteElement A Lagrangian finite element that provides the interpolation points * \param localFiniteElement A Lagrangian finite element that provides the interpolation points
* \param coefficients Values of the function at the Lagrange points * \param coefficients Values of the function at the Lagrange points
...@@ -67,17 +70,17 @@ public: ...@@ -67,17 +70,17 @@ public:
TargetSpace evaluate(const Dune::FieldVector<ctype, dim>& local) const; TargetSpace evaluate(const Dune::FieldVector<ctype, dim>& local) const;
/** \brief Evaluate the derivative of the function */ /** \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!) /** \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 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! \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, DerivativeType evaluateDerivative(const Dune::FieldVector<ctype, dim>& local,
const TargetSpace& q) const; const TargetSpace& q) const;
/** \brief For debugging: Evaluate the derivative of the function using a finite-difference approximation*/ /** \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 */ /** \brief Evaluate the derivative of the function value with respect to a coefficient */
void evaluateDerivativeOfValueWRTCoefficient(const Dune::FieldVector<ctype, dim>& local, void evaluateDerivativeOfValueWRTCoefficient(const Dune::FieldVector<ctype, dim>& local,
......
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