X-Git-Url: http://git.treefish.org/~alex/cubaint.git/blobdiff_plain/adc013e2895de042898e685c4cce29a387b4321d..60f2ebe7415cd811bbdfb52b16a38d6e2823ee28:/cubaint.cpp?ds=sidebyside diff --git a/cubaint.cpp b/cubaint.cpp index 939da69..9c9fef3 100644 --- a/cubaint.cpp +++ b/cubaint.cpp @@ -15,9 +15,9 @@ int cubaint::integrate (integrand_t integrand, const intmethod& IntMethod, { assert (verbosity < 4); - _integrate( integrand, IntMethod, Limits, ncomp, - nregions, neval, fail, integral, - error, prob, verbosity, userdata, Options ); + return _integrate( integrand, IntMethod, Limits, ncomp, + nregions, neval, fail, integral, + error, prob, verbosity, userdata, Options ); } int cubaint::integrate (integrand_tc integrand, const intmethod& IntMethod, @@ -30,9 +30,9 @@ int cubaint::integrate (integrand_tc integrand, const intmethod& IntMethod, { assert (verbosity < 4); - _integrate( integrand, IntMethod, Limits, 2*ncomp, - nregions, neval, fail, integral, - error, prob, verbosity, userdata, Options ); + return _integrate( integrand, IntMethod, Limits, 2*ncomp, + nregions, neval, fail, integral, + error, prob, verbosity, userdata, Options ); } template