Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions test/ode_problem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ 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!
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
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)
Expand Down
Loading