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

use method globalCoordinates() in the fd approximation of the tangent

[[Imported from SVN: r5565]]
parent bfce8529
No related branches found
No related tags found
No related merge requests found
......@@ -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++)
......
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