chiark / gitweb /
report correct count in test program
authorstevenj <stevenj@alum.mit.edu>
Thu, 26 May 2011 17:42:13 +0000 (13:42 -0400)
committerstevenj <stevenj@alum.mit.edu>
Thu, 26 May 2011 17:42:13 +0000 (13:42 -0400)
darcs-hash:20110526174213-c8de0-47ec8a3c4bdcd70ffbb0c68a58ef32a4ea8153a3.gz

test/testopt.cpp

index 124798f753f5a9c7acb6b47944fde00cf3912e3e..cf944c04dcfa780c335e16fc2b07c5a9b15b8c83 100644 (file)
@@ -214,6 +214,7 @@ static int test_function(int ifunc)
       }
     }
     
+    testfuncs_counter = 0;
     ret = nlopt_minimize(algorithm,
                         func.n, bounds_wrap_func, &bw,
                         lb, ub,