Skip to content

Commit 5637a0c

Browse files
refactor: use build_function_wrapper in SymbolicTstops
1 parent f9a5027 commit 5637a0c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ struct SymbolicTstops{F}
675675
end
676676

677677
function (st::SymbolicTstops)(p, tspan)
678-
unique!(sort!(reduce(vcat, st.fn(p..., tspan...))))
678+
unique!(sort!(reduce(vcat, st.fn(p, tspan...))))
679679
end
680680

681681
function SymbolicTstops(
@@ -692,13 +692,12 @@ function SymbolicTstops(
692692
end
693693
end
694694
rps = reorder_parameters(sys, parameters(sys))
695-
tstops, _ = build_function(tstops,
695+
tstops, _ = build_function_wrapper(sys, tstops,
696696
rps...,
697697
t0,
698698
t1;
699699
expression = Val{true},
700-
wrap_code = wrap_array_vars(sys, tstops; dvs = nothing) .∘
701-
wrap_parameter_dependencies(sys, false))
700+
p_start = 1, p_end = length(rps), add_observed = false, force_SA = true)
702701
tstops = eval_or_rgf(tstops; eval_expression, eval_module)
703702
return SymbolicTstops(tstops)
704703
end

0 commit comments

Comments
 (0)