Skip to content

Commit

Permalink
add tests for interp and cache stripping
Browse files Browse the repository at this point in the history
  • Loading branch information
jClugstor committed Aug 21, 2024
1 parent 18448c7 commit adc6181
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/interface/ode_strip_test.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using OrdinaryDiffEq, Test

function lorenz!(du, u, p, t)
du[1] = 10.0 * (u[2] - u[1])
du[2] = u[1] * (28.0 - u[3]) - u[2]
du[3] = u[1] * u[2] - (8 / 3) * u[3]
end

u0 = [1.0; 0.0; 0.0]
tspan = (0.0, 0.5)
prob = ODEProblem(lorenz!, u0, tspan)

sol = solve(prob, Rosenbrock23())

@test isnothing(strip_interpolation(sol.interp).f)
@test isnothing(strip_interpolation(sol.interp).cache.jac_config)

0 comments on commit adc6181

Please sign in to comment.