From d1724ec2f407093a9bb6028b7ce8a4b589778afd Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Thu, 29 Apr 2010 13:25:36 +0000 Subject: [PATCH] fix infinitesimalVariation method for RealTuple [[Imported from SVN: r5994]] --- dune/gfe/localgeodesicfestiffness.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dune/gfe/localgeodesicfestiffness.hh b/dune/gfe/localgeodesicfestiffness.hh index 8ad5518d..129c4faa 100644 --- a/dune/gfe/localgeodesicfestiffness.hh +++ b/dune/gfe/localgeodesicfestiffness.hh @@ -16,11 +16,11 @@ class LocalGeodesicFEStiffnessImp public: template <int N> - static void infinitesimalVariation(RealTuple<N>& c, double eps, int i) + static Dune::FieldVector<double,N> infinitesimalVariation(const RealTuple<N>& c, double eps, int i) { Dune::FieldVector<double,N> v(0); v[i] = eps; - c = RealTuple<N>::exp(c,v); + return RealTuple<N>::exp(c,v).globalCoordinates(); } /** \brief For the fd approximations -- GitLab