You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Simulation.jl
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -636,7 +636,7 @@ calculate the rates of all reactions at time t
636
636
functionrates(ssys::Q,t::X) where {Q<:SystemSimulation,X<:Real}
637
637
rts =zeros(length(ssys.reactions))
638
638
domains =getfield.(ssys.sims,:domain)
639
-
Nrxns =sum([length(sim.domain.phase.reactions) for sim in ssys.sims])+sum([length(inter.reactions) for inter in ssys.interfacesifhasproperty(inter,:reactions)])
639
+
Nrxns =sum([length(sim.domain.phase.reactions) for sim in ssys.sims])+sum([hasproperty(inter,:reactions) ?length(inter.reactions) :0for inter in ssys.interfaces])
640
640
Nspcs =sum([length(sim.domain.phase.species) for sim in ssys.sims])
0 commit comments