Skip to content

Commit

Permalink
Fix test and type in update_rx_rates!.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilin97 committed Sep 4, 2023
1 parent b071ec5 commit 122a224
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/spatial/reaction_rates.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ end
update rates of all reactions in rxs at site
"""
function update_rx_rates!(rx_rates::RxRates{F, M}, rxs, integrator,
site) where {F, M <: MassActionJump}
site) where {F, M <: AbstractMassActionJump}
u = integrator.u
ma_jumps = rx_rates.ma_jumps
@inbounds for rx in rxs
Expand Down
2 changes: 1 addition & 1 deletion test/spatial/reaction_rates.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ num_rxs = length(rates)
ma_jumps = MassActionJump(rates, reactstoch, netstoch)
spatial_ma_jumps = SpatialMassActionJump(rates, reactstoch, netstoch)
u = ones(Int, num_species, num_nodes)
integrator = DummyIntegrator(u)
integrator = DummyIntegrator(u,nothing,nothing)
rng = StableRNG(12345)

# Tests for RxRates
Expand Down

0 comments on commit 122a224

Please sign in to comment.