Skip to content

Commit 8f97710

Browse files
committed
add test for save_positions
1 parent 4588efd commit 8f97710

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/jumpsystem.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ function getmean(jprob,Nsims)
7171
end
7272
m = getmean(jprob,Nsims)
7373

74+
# test save_positions is working
75+
jprob = JumpProblem(js2, dprob, Direct(), save_positions=(false,false))
76+
sol = solve(jprob, SSAStepper(), saveat=1.0)
77+
@test all((sol.t) .== collect(0.:tspan[2]))
78+
7479
#test the MT JumpProblem rates/affects are correct
7580
rate2(u,p,t) = 0.01u[2]
7681
jump2 = ConstantRateJump(rate2,affect2!)

0 commit comments

Comments
 (0)