Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Aug 24, 2022
1 parent cb5f58f commit 6b945e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/derivative_wrappers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -738,9 +738,8 @@ end

function _jacNoise!(λ, y, p, t, S::TS, isnoise::Bool, dgrad, dλ,
dy) where {TS <: SensitivityFunction}
@unpack sensealg = S
@unpack sensealg, f = S
prob = getprob(S)
f = unwrapped_f(S.f)

if dgrad !== nothing
@unpack pJ, pf, f_cache, paramjac_noise_config = S.diffcache
Expand Down Expand Up @@ -870,8 +869,9 @@ end

function _jacNoise!(λ, y, p, t, S::TS, isnoise::ZygoteVJP, dgrad, dλ,
dy) where {TS <: SensitivityFunction}
@unpack sensealg, f = S
@unpack sensealg = S
prob = getprob(S)
f = unwrapped_f(S.f)

if StochasticDiffEq.is_diagonal_noise(prob)
if inplace_sensitivity(S)
Expand Down

0 comments on commit 6b945e1

Please sign in to comment.