Skip to content

Commit

Permalink
Update test/common_interface/callbacks.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Dec 10, 2023
1 parent 41425b7 commit aa46fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/common_interface/callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ sol = solve(prob, IDA(), callback = cb, tstops = [50.0], abstol = 1e-12, reltol

# Test that SubArrays are not allowed as outputs to the integrator
u_out = similar(u₀)
cb = DiscreteCallback(Returns(true), integ -> integ(@view(u_out), integ.t))
cb = DiscreteCallback(Returns(true), integ -> integ(@view(u_out[2:2]), integ.t))
prob = DAEProblem(fbv, du₀, u₀, tspan, p, differential_vars = differential_vars)
@test_throws ArgumentError solve(prob, IDA(), callback = cb)

0 comments on commit aa46fe5

Please sign in to comment.