molpopgen / fwdpp

fwdpp is a C++ template library for implementing efficient forward-time population genetic simulations
http://fwdpp.readthedocs.io
GNU General Public License v3.0
27 stars 11 forks source link

Bug in fwdpp::fwdpp_internal::rec_update_itr #134

Closed molpopgen closed 6 years ago

molpopgen commented 6 years ago

This function has used std::upper_bound for a very long time, which has the effect of treating recombination breakpoints as [l,r] when I intend them to be [l,r).
The difference between the two can only really be triggered when mutation and recombination rates are > 1. However, experiments in integrating tree sequence methods into the code base revealed the error.