Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions test/static_array_tests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using StaticArrays, StochasticDiffEq

using Test
f(du,u,p,t) = (du .= u)

u0 = zeros(MVector{2,Float64}, 2) .+ 1
Expand All @@ -14,14 +14,15 @@ ode = SDEProblem(f, f, u0, (0.,1.))
@test_broken sol = solve(ode, EM(), dt=1.e-2)
@test_broken sol = solve(ode, SRIW1(), dt=1.e-2)


u0 = ones(MVector{2,Float64})
ode = SDEProblem(f, f, u0, (0.,1.))
sol = solve(ode, EM(), dt=1.e-2)
sol = solve(ode, SRIW1())
sol = solve(ode, DRI1(), dt=1.e-2)

u0 = ones(SVector{2,Float64})
f(u,p,t) = u
prob = SDEProblem(f, f, u0, (0.,1.))
Copy link
Member

Choose a reason for hiding this comment

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

it's calling the wrong f.

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
prob = SDEProblem(f, f, u0, (0.,1.))
prob = SDEProblem{false}(f, f, u0, (0.,1.))

sol = solve(ode, EM(), dt=1.e-2)
sol = solve(ode, SRIW1())
@test_broken sol = solve(prob, EM(), dt=1.e-2)
@test_broken sol = solve(prob, SRIW1())
@test_broken sol = solve(prob, DRI1(), dt=1.e-2)