Skip to content

Commit cf0f050

Browse files
committed
fix initialization bug
1 parent 176ca81 commit cf0f050

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

HISTORY.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Breaking updates and feature summaries across releases
2+
3+
## JumpProcesses unreleased (master branch)
4+
- Support for "bounded" `VariableRateJump`s that can be used with the `Coevolve`
5+
aggregator for faster simulation of jump processes with time-dependent rates.
6+
In particular, if all `VariableRateJump`s in a pure-jump system are bounded one
7+
can use `Coevolve` with `SSAStepper` for better performance. See the
8+
documentation, particularly the first and second tutorials, for details on
9+
defining and using bounded `VariableRateJump`s.

src/aggregators/coevolve.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ function aggregate(aggregator::Coevolve, u, p, t, end_time, constant_jumps,
6565
affects! = Vector{AffectWrapper}(undef, nrjs)
6666
rates = Vector{RateWrapper}(undef, nvrjs)
6767
lrates = similar(rates)
68-
urates = similar(rates)
6968
rateintervals = similar(rates)
69+
urates = Vector{RateWrapper}(undef, nrjs)
7070
haslratevec = zeros(Bool, nvrjs)
7171

7272
idx = 1

0 commit comments

Comments
 (0)