-
-
Notifications
You must be signed in to change notification settings - Fork 233
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
@mtkmodel DECAY begin
@parameters begin
unrelated[1:2] = zeros(2)
k = 0.0
end
@variables begin
x(t) = 10.0
end
@equations begin
D(x) ~ -k*x
end
@discrete_events begin
(t == 1.0) => [k~1.0]
end
end
@mtkbuild decay = DECAY()
prob = ODEProblem(decay, [], (0.0, 10.0), [])
sol = solve(prob, Tsit5(),tstops=[1.0])julia> sol = solve(prob, Tsit5(),tstops=[1.0])
ERROR: MethodError: no method matching view(::Float64, ::UnitRange{Int64})
The function `view` exists, but no method is defined for this combination of argument types.
Removing the array works.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working