Skip to content

Commit

Permalink
Add some additional methods to overrride the stored p and t
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Nov 14, 2023
1 parent 44b8dd0 commit c7096f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SciMLBase"
uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
authors = ["Chris Rackauckas <[email protected]> and contributors"]
version = "2.8.0"
version = "2.8.1"

[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
Expand Down
2 changes: 2 additions & 0 deletions src/function_wrappers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ end

(ff::UJacobianWrapper)(du1, uprev) = ff.f(du1, uprev, ff.p, ff.t)
(ff::UJacobianWrapper)(uprev) = (du1 = similar(uprev); ff.f(du1, uprev, ff.p, ff.t); du1)
(ff::UJacobianWrapper)(du1, uprev, p, t) = ff.f(du1, uprev, p, t)
(ff::UJacobianWrapper)(uprev, p, t) = (du1 = similar(uprev); ff.f(du1, uprev, p, t); du1)

Check warning on line 18 in src/function_wrappers.jl

View check run for this annotation

Codecov / codecov/patch

src/function_wrappers.jl#L17-L18

Added lines #L17 - L18 were not covered by tests

mutable struct TimeDerivativeWrapper{F, uType, P} <: Function
f::F
Expand Down

0 comments on commit c7096f2

Please sign in to comment.