From 896a67e280d41df613092279f76913f8372faba1 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Sun, 11 Oct 2009 16:24:22 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@79 ed2142bd-67ad-457f-ba7c-d818d4011675 --- methods/aga/aga.hpp | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'methods/aga') diff --git a/methods/aga/aga.hpp b/methods/aga/aga.hpp index cf0b4a6..77c5700 100644 --- a/methods/aga/aga.hpp +++ b/methods/aga/aga.hpp @@ -69,7 +69,7 @@ namespace opt_utilities pT reproduction_box; std::vector > samples; std::vector buffer; - + mutable bool bstop; private: typename element_type_trait::element_type uni_rand (typename element_type_trait::element_type x1, @@ -216,7 +216,7 @@ namespace opt_utilities } pT lb(get_size(samples[0].p)); pT ub(get_size(samples[0].p)); - for(int i=0;ip; } + + void do_stop() + { + bstop=true; + } }; -- cgit v1.2.2