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

make compile

[[Imported from SVN: r6718]]
parent 9527428b
No related branches found
No related tags found
No related merge requests found
...@@ -149,7 +149,8 @@ public: ...@@ -149,7 +149,8 @@ public:
static void assembleGradient(const Entity& element, static void assembleGradient(const Entity& element,
const std::vector<TargetSpace>& localSolution, const std::vector<TargetSpace>& localSolution,
std::vector<typename TargetSpace::TangentVector>& localGradient) std::vector<typename TargetSpace::TangentVector>& localGradient,
const LocalGeodesicFEStiffness<GridView,TargetSpace>* energyObject)
{ {
// /////////////////////////////////////////////////////////// // ///////////////////////////////////////////////////////////
// Compute gradient by finite-difference approximation // Compute gradient by finite-difference approximation
...@@ -169,7 +170,7 @@ public: ...@@ -169,7 +170,7 @@ public:
infinitesimalVariation(forwardSolution[i], eps, j); infinitesimalVariation(forwardSolution[i], eps, j);
infinitesimalVariation(backwardSolution[i], -eps, j); infinitesimalVariation(backwardSolution[i], -eps, j);
localGradient[i][j] = (energy(element,forwardSolution) - energy(element,backwardSolution)) localGradient[i][j] = (energyObject->energy(element,forwardSolution) - energyObject->energy(element,backwardSolution))
/ (2*eps); / (2*eps);
forwardSolution[i] = localSolution[i]; forwardSolution[i] = localSolution[i];
......
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