Skip to content

Commit 852ad71

Browse files
committed
Fix out-of-place ParamJacobianWrapper
1 parent feae8a3 commit 852ad71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/function_wrappers.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ function (ff::ParamJacobianWrapper)(du1,p)
4040
end
4141

4242
function (ff::ParamJacobianWrapper)(p)
43-
du1 = similar(uprev)
43+
du1 = similar(p, size(ff.u))
4444
ff.f(du1,ff.u,p,ff.t)
45+
return du1
4546
end

0 commit comments

Comments
 (0)