Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Aug 31, 2022
1 parent 85bf1d2 commit 289815c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/adjoint_common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -430,11 +430,11 @@ function ReverseLossCallback(sensefun, λ, t, dgdu, dgdp, cur_time)
idx = length(prob.u0)
if ArrayInterfaceCore.ismutable(y)
return ReverseLossCallback(isq, λ, t, y, cur_time, idx, factorized_mass_matrix,
sensealg, dgdu, dgdp, sensefun.diffcache, sensefun.f,
sensealg, dgdu, dgdp, sensefun.diffcache, sensefun.f,
nothing)
else
return ReverseLossCallback(isq, λ, t, y, cur_time, idx, factorized_mass_matrix,
sensealg, dgdu, dgdp, sensefun.diffcache, sensefun.f,
sensealg, dgdu, dgdp, sensefun.diffcache, sensefun.f,
sensefun.sol)
end
end
Expand Down Expand Up @@ -474,7 +474,7 @@ function (f::ReverseLossCallback)(integrator)
end
if DiffEqBase.has_jac(f.f)
f.f.jac(J, y, p, t[cur_time[]])
else
else
jacobian!(J, uf, y, f_cache, sensealg, jac_config)
end
dhdd = J[algevar_idxs, diffvar_idxs]
Expand Down

0 comments on commit 289815c

Please sign in to comment.