From b8498a9ee95b64e08afc996d32f1159b70820929 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Tue, 23 Mar 2010 11:09:12 +0000 Subject: [PATCH] bugfix: each line of the second derivative needs to be projected onto the tangent space [[Imported from SVN: r5793]] --- src/unitvector.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/unitvector.hh b/src/unitvector.hh index 9c57d0be..059d99da 100644 --- a/src/unitvector.hh +++ b/src/unitvector.hh @@ -128,6 +128,9 @@ public: result = A; result.axpy(-1*derivativeOfArcCosSquared(sp), B); + for (int i=0; i<dim; i++) + result[i] = b.projectOntoTangentSpace(result[i]); + return result; } -- GitLab