From cda382250061471347b2baf749e2c0e7e615b1bd Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Sat, 12 Sep 2026 11:33:54 -0400 Subject: [PATCH 1/2] Update ODEProblem internals assertions for current SciMLBase `ode_prob.f.f.f` assumed `AutoSpecialize` wraps `f` in two extra layers; since SciMLBase 3.53 the `ODEFunction` stores the raw function and specialization is installed solver-side, so `ode_prob.f.f` is `pde_odes!` directly. The test errored on `julia lts` and `julia '1'` with `typeof(pde_odes!) has no field 'f'`. Also replace `ode_prob.kwargs.data.callback` (deprecated on current Base: "use values(kwargs) instead of kwargs.data") with `ode_prob.kwargs[:callback]`. Verified locally: `test/ode_problem.jl` passes on Julia 1.10.12 and 1.13.0 with SciMLBase 3.53.3. Co-Authored-By: Chris Rackauckas Co-Authored-By: Devin Agent-Harness: Devin CLI 3000.10.21 Agent-Model: SWE-2 Max Agent-Session: local session, /home/crackauc/.local/share/devin/cli/sessions.db --- test/ode_problem.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ode_problem.jl b/test/ode_problem.jl index bbfe511..129b611 100644 --- a/test/ode_problem.jl +++ b/test/ode_problem.jl @@ -44,11 +44,11 @@ end @test nnz(J) == sum(_J) == 3(length(mesh_points) - 2) + 4 ode_prob = ODEProblem(prob) @test ode_prob.p == prob -@test ode_prob.f.f.f == FVM.pde_odes! +@test ode_prob.f.f == FVM.pde_odes! @test ode_prob.u0 == initial_condition @test ode_prob.tspan == (prob.initial_time, final_time) @test ode_prob.f.jac_prototype == J -cb = ode_prob.kwargs.data.callback.discrete_callbacks +cb = ode_prob.kwargs[:callback].discrete_callbacks lhs_cb, rhs_cb = cb @test lhs_cb.condition(0.0, 0.0, 0.0) @test !rhs_cb.condition(0.0, 0.0, 0.0) From 9e689a13cef1cc51582bd089296ba5f7ba9b1df3 Mon Sep 17 00:00:00 2001 From: Chris Rackauckas Date: Sat, 12 Sep 2026 13:15:03 -0400 Subject: [PATCH 2/2] Unwrap ODEFunction layers for the stored-function assertion SciMLBase 3.53+ stores `f` unwrapped (one ODEFunction level), while SciMLBase 3.18-era versions wrap the specialization in a second ODEFunction. The downgrade CI lane resolves the old version, so a fixed number of `.f` dereferences fails there. Recurse until the raw function instead. Co-Authored-By: Chris Rackauckas Co-Authored-By: Devin Agent-Harness: Devin CLI 3000.10.21 Agent-Model: SWE-2 Max Agent-Session: /home/crackauc/.local/share/devin/cli/summaries/history_4c9fddb81d834736.md --- test/ode_problem.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/ode_problem.jl b/test/ode_problem.jl index 129b611..ebb5f34 100644 --- a/test/ode_problem.jl +++ b/test/ode_problem.jl @@ -44,7 +44,8 @@ end @test nnz(J) == sum(_J) == 3(length(mesh_points) - 2) + 4 ode_prob = ODEProblem(prob) @test ode_prob.p == prob -@test ode_prob.f.f == FVM.pde_odes! +unwrap_odefun(f) = f isa SciMLBase.ODEFunction ? unwrap_odefun(f.f) : f +@test unwrap_odefun(ode_prob.f) == FVM.pde_odes! @test ode_prob.u0 == initial_condition @test ode_prob.tspan == (prob.initial_time, final_time) @test ode_prob.f.jac_prototype == J