From 23054ed56d1edda4593014c805af7cde125662b0 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Wed, 31 Jul 2024 19:15:50 -0400 Subject: [PATCH] Update nlls_tests.jl --- test/mirk/nlls_tests.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/mirk/nlls_tests.jl b/test/mirk/nlls_tests.jl index 37c5e6c3..b7192717 100644 --- a/test/mirk/nlls_tests.jl +++ b/test/mirk/nlls_tests.jl @@ -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 @@ -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