From fe78c632291c3e392d1dab868022f92e5a32aef9 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Sat, 13 Feb 2010 17:42:01 +0000 Subject: [PATCH] use method globalCoordinates() in the fd approximation of the tangent [[Imported from SVN: r5565]] --- src/localgeodesicfefunction.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/localgeodesicfefunction.hh b/src/localgeodesicfefunction.hh index 4842e7d1..aaf8af6e 100644 --- a/src/localgeodesicfefunction.hh +++ b/src/localgeodesicfefunction.hh @@ -117,7 +117,7 @@ evaluateDerivativeFD(const Dune::FieldVector<ctype, dim>& local) forward[i] += eps; backward[i] -= eps; - EmbeddedTangentVector fdDer = evaluate(forward) - evaluate(backward); + EmbeddedTangentVector fdDer = evaluate(forward).globalCoordinates() - evaluate(backward).globalCoordinates(); fdDer /= 2*eps; for (int j=0; j<EmbeddedTangentVector::size; j++) -- GitLab