Skip to content

Commit 2dc3c20

Browse files
Merge pull request #40 from JuliaDiffEq/myb/fix
Fix out-of-place ParamJacobianWrapper
2 parents feae8a3 + 852ad71 commit 2dc3c20

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)