-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DirectCR-RSSA #346
base: master
Are you sure you want to change the base?
DirectCR-RSSA #346
Conversation
Pull Request Test Coverage Report for Build 6141985002
💛 - Coveralls |
Conflicts: src/spatial/bracketing.jl src/spatial/reaction_rates.jl
spatial_system) | ||
@inbounds for spec in species | ||
update_hop_rate!(hop_rates, spec, u, site, spatial_system) | ||
function update_hop_rates!(hop_rates::AbstractHopRates, species_vec, u, site, spatial_system) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If species_vec
is a single species, the function reduces to updating a single hop rate. So I deleted update_hop_rate!
.
src/spatial/directcrdirect.jl
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a very hard-to-find bug in the ordering of arguments in generate_jumps!. I fixed it here and in NSM.jl.
Pull Request Test Coverage Report for Build 6180696485
💛 - Coveralls |
…to RSSACRDirect
A new spatial SSA called
DirectCRRSSA
uses RSSA-style sampling to sample the site+jump. It is about 20% faster thanDirectCRDirect
, at least on the problem in thetest/spatial/ABC.jl
(5 sites in a line, 3 species, 2 reactions).