Skip to content

Commit

Permalink
make integral functions callable
Browse files Browse the repository at this point in the history
  • Loading branch information
lxvm committed Sep 21, 2023
1 parent c0f4062 commit 740576a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scimlfunctions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2397,6 +2397,8 @@ TruncatedStacktraces.@truncate_stacktrace BatchIntegralFunction 1 2
(f::ODEFunction)(args...) = f.f(args...)
(f::NonlinearFunction)(args...) = f.f(args...)
(f::IntervalNonlinearFunction)(args...) = f.f(args...)
(f::IntegralFunction)(args...) = f.f(args...)
(f::BatchIntegralFunction)(args...) = f.f(args...)

function (f::DynamicalODEFunction)(u, p, t)
ArrayPartition(f.f1(u.x[1], u.x[2], p, t), f.f2(u.x[1], u.x[2], p, t))
Expand Down

0 comments on commit 740576a

Please sign in to comment.