Skip to content

Commit

Permalink
Update test/forward.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Nov 8, 2024
1 parent 40aaab2 commit 9a8c5b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/forward.jl
Original file line number Diff line number Diff line change
Expand Up @@ -274,12 +274,12 @@ f = prob.f

# `remake`: https://github.com/SciML/SciMLSensitivity.jl/issues/1137

function f(du, u, p, t)
function ff3(du, u, p, t)
du[1] = dx = p[1] * u[1] - p[2] * u[1] * u[2]
du[2] = dy = -p[3] * u[2] + u[1] * u[2]
end

p = [1.5, 1.0, 3.0]
ts = (0, 10)
prob = ODEForwardSensitivityProblem(f, [1.0; 1.0], ts, p, sensealg=ForwardDiffSensitivity())
prob = ODEForwardSensitivityProblem(ff3, [1.0; 1.0], ts, p, sensealg=ForwardDiffSensitivity())
sol = solve(prob, Tsit5())

0 comments on commit 9a8c5b2

Please sign in to comment.