chiark / gitweb /
yikes, bug fix in DIRECT that prevented convergence for Shekel-10 (DIRECT-L is not...
authorstevenj <stevenj@alum.mit.edu>
Thu, 13 Nov 2008 17:08:06 +0000 (12:08 -0500)
committerstevenj <stevenj@alum.mit.edu>
Thu, 13 Nov 2008 17:08:06 +0000 (12:08 -0500)
darcs-hash:20081113170806-c8de0-77c0694921154f382921dca06507d02b39d2fe71.gz

cdirect/cdirect.c

index a09b3f47824c24215701aa0b669fb2a7e933d18a..49d4836173c11b0101ccc4873fb835e0ba9bfafb 100644 (file)
@@ -371,7 +371,7 @@ static int convex_hull(rb_tree *t, double **hull, int allow_dups)
          do { /* include any duplicate points at (xmax,ymaxmin) */
               hull[nhull++] = nmax->k;
               nmax = rb_tree_succ(nmax);
-         } while (nmax && nmax->k[0] == xmax && n->k[1] == ymaxmin);
+         } while (nmax && nmax->k[0] == xmax && nmax->k[1] == ymaxmin);
      else
          hull[nhull++] = nmax->k;