diff --git a/Geo/CAD.cpp b/Geo/CAD.cpp
index 57963b60f613fa35f06de4a86421f422113965b2..22e2defdf370198cbc6c65fa741e911ab7936f08 100644
--- a/Geo/CAD.cpp
+++ b/Geo/CAD.cpp
@@ -1,4 +1,4 @@
-// $Id: CAD.cpp,v 1.59 2003-03-01 22:36:38 geuzaine Exp $
+// $Id: CAD.cpp,v 1.60 2003-03-04 02:35:30 geuzaine Exp $
 //
 // Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
 //
@@ -1815,7 +1815,8 @@ static Vertex *VERTEX;
 
 double min1d(double (*funct) (double), double *xmin)
 {
-  double ax = 1.e-15, bx = 1.e-12, cx = 1.e-11, fa, fb, fx, tol = 1.e-3;
+  // we should think about the tolerance more carefully...
+  double ax = 1.e-15, bx = 1.e-12, cx = 1.e-11, fa, fb, fx, tol = 1.e-4;
   mnbrak(&ax, &bx, &cx, &fa, &fx, &fb, funct);
   //Msg(INFO, "--MIN1D : ax %12.5E bx %12.5E cx %12.5E",ax,bx,cx);  
   return (brent(ax, bx, cx, funct, tol, xmin));
diff --git a/Numeric/gsl_brent.cpp b/Numeric/gsl_brent.cpp
index 127f1d4e7d732a9de2518ebb3ce5fa725ac27eab..2669304d280395e17286aec14fab7b7418c103c3 100644
--- a/Numeric/gsl_brent.cpp
+++ b/Numeric/gsl_brent.cpp
@@ -1,4 +1,4 @@
-// $Id: gsl_brent.cpp,v 1.7 2003-03-03 23:47:32 geuzaine Exp $
+// $Id: gsl_brent.cpp,v 1.8 2003-03-04 02:35:30 geuzaine Exp $
 //
 // Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
 //
@@ -86,7 +86,8 @@ double brent(double ax, double bx, double cx,
     // this is deprecated: we should use gsl_min_fminimizer_x_minimum(s) instead
     a = gsl_min_fminimizer_x_lower(s);
     c = gsl_min_fminimizer_x_upper(s);
-    status = gsl_min_test_interval(a, c, tol, 0.0);
+    // we should think about the tolerance more carefully...
+    status = gsl_min_test_interval(a, c, tol, tol);
   }
   while(status == GSL_CONTINUE && iter < MAXITER);