Skip to content

Commit

Permalink
Remove update_coefficients! in calc_W
Browse files Browse the repository at this point in the history
  • Loading branch information
YingboMa committed Jun 5, 2019
1 parent 62b84c9 commit f514e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/derivative_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ function calc_W!(integrator, cache::OrdinaryDiffEqMutableCache, dtgamma, repeat_
(!repeat_step && W_transform) ? f.invW_t(W, uprev, p, dtgamma, t) : f.invW(W, uprev, p, dtgamma, t) # W == inverse W
is_compos && calc_J!(integrator, cache, true)
elseif DiffEqBase.has_jac(f) && f.jac_prototype !== nothing
DiffEqBase.update_coefficients!(W,uprev,p,t)
# DiffEqBase.update_coefficients!(W,uprev,p,t) # we will call `update_coefficients!` in NLNewton
@label J2W
W.transform = W_transform; set_gamma!(W, dtgamma)
else # concrete W using jacobian from `calc_J!`
Expand Down

0 comments on commit f514e01

Please sign in to comment.