Skip to content

Commit

Permalink
Drop passing p and t to the JacVec operator
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Nov 16, 2023
1 parent 2009c6b commit 680fcaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/derivative_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ function build_J_W(alg, u, uprev, p, t, dt, f::F, ::Type{uEltypeNoUnits},
# be overridden with concrete_jac.

_f = islin ? (isode ? f.f : f.f1.f) : f
jacvec = JacVec(UJacobianWrapper(_f, t, p), copy(u), p, t;
jacvec = JacVec(UJacobianWrapper(_f, t, p), copy(u);
autodiff = alg_autodiff(alg), tag = OrdinaryDiffEqTag())
J = jacvec
W = WOperator{IIP}(f.mass_matrix, dt, J, u, jacvec)
Expand All @@ -890,7 +890,7 @@ function build_J_W(alg, u, uprev, p, t, dt, f::F, ::Type{uEltypeNoUnits},
else
deepcopy(f.jac_prototype)
end
jacvec = JacVec(UJacobianWrapper(_f, t, p), copy(u), p, t;
jacvec = JacVec(UJacobianWrapper(_f, t, p), copy(u);
autodiff = alg_autodiff(alg), tag = OrdinaryDiffEqTag())
W = WOperator{IIP}(f.mass_matrix, dt, J, u, jacvec)

Expand Down

0 comments on commit 680fcaf

Please sign in to comment.