Skip to content

Commit

Permalink
Update nlls_tests.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jul 31, 2024
1 parent e4c80c9 commit 23054ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/mirk/nlls_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
f1(u, p, t) = [u[2], -u[1]]

function bc1(sol, p, t)
solₜ₁ = sol[1]
solₜ₂ = sol[end]
solₜ₁ = sol.u[1]
solₜ₂ = sol.u[end]
return [solₜ₁[1], solₜ₂[1] - 1, solₜ₂[2] + 1.729109]
end

Expand All @@ -32,8 +32,8 @@
end

function bc1!(resid, sol, p, t)
solₜ₁ = sol[1]
solₜ₂ = sol[end]
solₜ₁ = sol.u[1]
solₜ₂ = sol.u[end]
# We know that this overconstrained system has a solution
resid[1] = solₜ₁[1]
resid[2] = solₜ₂[1] - 1
Expand Down

0 comments on commit 23054ed

Please sign in to comment.