Skip to content

Commit d4cb3a4

Browse files
Update lib/OrdinaryDiffEqBDF/test/allocation_tests.jl
1 parent 34b1a06 commit d4cb3a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/OrdinaryDiffEqBDF/test/allocation_tests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ Currently, many BDF solvers are allocating and marked with @test_broken.
2929
split_prob = SplitODEProblem(f1!, f2!, [1.0, 1.0], (0.0, 1.0))
3030

3131
# DAE problem for DAE solvers
32-
function dae_f!(du, u, p, t)
33-
du[1] = -0.5 * u[1] + u[2]
34-
du[2] = u[1] - u[2]
32+
function dae_f!(resid, du, u, p, t)
33+
resid[1] = -0.5 * u[1] + u[2] - du[1]
34+
resid[2] = u[1] - u[2] - du[2]
3535
end
3636
du0 = zeros(2)
3737
differential_vars = [true, false]

0 commit comments

Comments
 (0)