Skip to content
Snippets Groups Projects
Commit d1724ec2 authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

fix infinitesimalVariation method for RealTuple

[[Imported from SVN: r5994]]
parent b068e283
Branches
No related tags found
No related merge requests found
...@@ -16,11 +16,11 @@ class LocalGeodesicFEStiffnessImp ...@@ -16,11 +16,11 @@ class LocalGeodesicFEStiffnessImp
public: public:
template <int N> 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); Dune::FieldVector<double,N> v(0);
v[i] = eps; v[i] = eps;
c = RealTuple<N>::exp(c,v); return RealTuple<N>::exp(c,v).globalCoordinates();
} }
/** \brief For the fd approximations /** \brief For the fd approximations
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment