diff --git a/Project.toml b/Project.toml index 241005263..53a337d5e 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "SciMLBase" uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462" authors = ["Chris Rackauckas and contributors"] -version = "2.36.2" +version = "2.37.0" [deps] ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b" diff --git a/src/function_wrappers.jl b/src/function_wrappers.jl index 1e7262180..25ff6e4cc 100644 --- a/src/function_wrappers.jl +++ b/src/function_wrappers.jl @@ -91,6 +91,9 @@ function (ff::ParamJacobianWrapper{true})(p) return du1 end (ff::ParamJacobianWrapper{false})(p) = ff.f(ff.u, p, ff.t) +function (ff::ParamJacobianWrapper{false})(du1, p) + du1 .= ff.f(ff.u, p, ff.t) +end mutable struct JacobianWrapper{iip, fType, pType} <: AbstractSciMLFunction{iip} f::fType