From 2ea070db3fe3c61d577b399474c2751be17ad7ff Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 1 Aug 2001 21:18:21 +0000 Subject: [PATCH] lowered tolerance in sys3x3_with_tol -> check benchmarks/bug/bug_ruled.geo --- Mesh/Numeric.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mesh/Numeric.cpp b/Mesh/Numeric.cpp index 7e89139c7f..7e0c497c03 100644 --- a/Mesh/Numeric.cpp +++ b/Mesh/Numeric.cpp @@ -1,4 +1,4 @@ -// $Id: Numeric.cpp,v 1.16 2001-07-26 21:26:34 geuzaine Exp $ +// $Id: Numeric.cpp,v 1.17 2001-08-01 21:18:21 geuzaine Exp $ #include "Gmsh.h" #include "Const.h" @@ -130,7 +130,7 @@ int sys3x3_with_tol (double mat[3][3], double b[3], double res[3], double *det){ DSQR (mat[2][0]) + DSQR (mat[2][1]) + DSQR (mat[2][2]) ; // TOLERANCE ! WARNING WARNING - if (norm == 0.0 || fabs (*det) / norm < 1.e-07){ + if (norm == 0.0 || fabs (*det) / norm < 1.e-12){ Msg(DEBUG, "Assuming 3x3 matrix is singular (det/norm == %g)", fabs(*det)/norm); res[0] = res[1] = res[2] = 0.0 ; return 0; -- GitLab