|
[Rivet-svn] rivet: Fix assert in logspaceRivet Mercurial rivet at projects.hepforge.orgTue Dec 22 16:45:01 GMT 2015
details: https://rivet.hepforge.org/hg/rivet/rev/c7ef272c4a76 branches: release-2-4-x changeset: 4966:c7ef272c4a76 user: Andy Buckley <andy at insectnation.org> date: Tue Dec 22 16:35:58 2015 +0000 description: Fix assert in logspace diffs (11 lines): --- a/include/Rivet/Math/MathUtils.hh Sun Dec 20 10:26:26 2015 +0000 +++ b/include/Rivet/Math/MathUtils.hh Tue Dec 22 16:35:58 2015 +0000 @@ -294,7 +294,7 @@ const double logstart = std::log(start); const double logend = std::log(end); const vector<double> logvals = linspace(nbins, logstart, logend, false); - assert(logvals.size() == nbins+1); + assert(logvals.size() == nbins); vector<double> rtn; rtn.reserve(nbins+1); rtn.push_back(start); //< exact start, not exp(log(start)) for (size_t i = 1; i < logvals.size(); ++i) {
More information about the Rivet-svn mailing list |