Skip to content
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

working on spatially varying reaction rates, WIP #219

Merged
merged 16 commits into from
Feb 18, 2022
Merged

working on spatially varying reaction rates, WIP #219

merged 16 commits into from
Feb 18, 2022

Conversation

Vilin97
Copy link
Contributor

@Vilin97 Vilin97 commented Feb 8, 2022

Want to be able to handle spatially varying reaction rates.

@Vilin97 Vilin97 marked this pull request as ready for review February 10, 2022 19:10
src/spatial/reaction_rates.jl Outdated Show resolved Hide resolved
src/spatial/spatial_massaction_jump.jl Outdated Show resolved Hide resolved
src/spatial/spatial_massaction_jump.jl Outdated Show resolved Hide resolved
test/spatial/ABC.jl Outdated Show resolved Hide resolved
src/spatial/spatial_massaction_jump.jl Outdated Show resolved Hide resolved
@@ -52,13 +52,20 @@ end

update rates of all reactions in rxs at site
"""
function update_rx_rates!(rx_rates, rxs, u, site)
function update_rx_rates!(rx_rates::RxRates{F,M}, rxs, u, site) where {F, M <: MassActionJump}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we still need this version? Shouldn't we always just SpatialMassActionJumps internally for the spatial solvers now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MassActionJump has more utilities like parameter mapping and merging so I thought it's good to leave it as a sort of backward compatibility

src/spatial/spatial_massaction_jump.jl Show resolved Hide resolved
src/spatial/spatial_massaction_jump.jl Outdated Show resolved Hide resolved
@isaacsas isaacsas merged commit c842db8 into SciML:master Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants