From cfdac4cf8747ae6ad49e3d95f422d03acc4acf75 Mon Sep 17 00:00:00 2001 From: Jonathan Lambrechts <jonathan.lambrechts@uclouvain.be> Date: Tue, 26 Oct 2010 17:25:53 +0000 Subject: [PATCH] MElement : correct bug in 1d jacobian (please check this commit is correct, I'm surprise such a bug survived so long unnoticed) --- Geo/MElement.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Geo/MElement.cpp b/Geo/MElement.cpp index bccac6128c..1166d924f0 100644 --- a/Geo/MElement.cpp +++ b/Geo/MElement.cpp @@ -202,8 +202,8 @@ static double _computeDeterminantAndRegularize(MElement *ele, double jac[3][3]) norme(b); prodve(a, b, c); norme(c); - jac[0][1] = b[0]; jac[1][1] = b[1]; jac[2][1] = b[2]; - jac[0][2] = c[0]; jac[1][2] = c[1]; jac[2][2] = c[2]; + jac[1][0] = b[0]; jac[1][1] = b[1]; jac[1][2] = b[2]; + jac[2][0] = c[0]; jac[2][1] = c[1]; jac[2][2] = c[2]; break; } case 2: -- GitLab