Skip to content

Commit 9db8a8c

Browse files
Apply suggestions from code review
1 parent 3ba02de commit 9db8a8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scimlfunctions.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2618,7 +2618,7 @@ end
26182618

26192619
(f::SplitFunction)(u, p, t) = f.f1(u, p, t) + f.f2(u, p, t)
26202620
function (f::SplitFunction)(du, u, p, t)
2621-
tmp = get_tmp(f._func_cache, u)
2621+
tmp = get_tmp(f._func_cache, du)
26222622
f.f1(tmp, u, p, t)
26232623
f.f2(du, u, p, t)
26242624
du .+= tmp
@@ -2668,7 +2668,7 @@ end
26682668
(f::SDDEFunction)(args...) = f.f(args...)
26692669
(f::SplitSDEFunction)(u, p, t) = f.f1(u, p, t) + f.f2(u, p, t)
26702670
function (f::SplitSDEFunction)(du, u, p, t)
2671-
tmp = get_tmp(f._func_cache)
2671+
tmp = get_tmp(f._func_cache, du)
26722672
f.f1(tmp, u, p, t)
26732673
f.f2(du, u, p, t)
26742674
du .+= tmp

0 commit comments

Comments
 (0)